History log of /external/mesa3d/src/gallium/drivers/r300/r300_state.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fdfb299c22318ad54520de86fade5754848f8366 01-Feb-2013 Marek Olšák <maraeo@gmail.com> r300g: fix blending with blend color and RGBA formats

NOTE: This is a candidate for the stable branches.
(cherry picked from commit f40a7fc34a601195191b1b2ffef55818a4086d5f)
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
9311e55c8ad97329bb2d06a0680f5165de9b21f5 07-Dec-2012 Stefan Dösinger <stefandoesinger@gmx.at> r300: Don't disable destination read if the src blend factor needs it

The read can remain disabled if the src alpha factor needs it because
the result would still be zero.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57984

NOTE: This is a candidate for stable release branches.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
(cherry picked from commit ff5a9868c8d5041a3d944ce300c857934f4e8251)
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
e81717e9e7c46eed05f9a29adaaf4c86306a8920 14-Sep-2012 Marek Olšák <maraeo@gmail.com> r300g: fix colormask with non-BGRA formats

NOTE: This is a candidate for the stable branches.
(cherry picked from commit 1e51d368eb5360378218217ff35731896f48512f)
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
185ed2105829d6f5eb19edb9abbf0d7977e157c3 25-May-2012 Brian Paul <brianp@vmware.com> draw: simplify index buffer specification

Replace draw_set_index_buffer() and draw_set_mapped_index_buffer() with
draw_set_indexes() which simply takes a pointer and an index size.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
7446a0407d4e61a826385c11ed6c401837baf095 16-May-2012 Michel Dänzer <michel.daenzer@amd.com> gallium/radeon: Fix r300g tiling breakage.

Commit 11f056a3f0b87e86267efa8b5ac9d36a343c9dc1 broke the r300g build. Fix it
up, and reinstate some code which isn't needed by r600g and radeonsi but is
by r300g.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
9d6b46b1cd459ee6c0db4bfe518adb6928c5b59f 11-May-2012 Marek Olšák <maraeo@gmail.com> r300g/swtcl: move vertex buffer updates into set_vertex_buffers
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
735d0d93a7d748c2e0c0f13fcd6da0c13b678da9 11-May-2012 Marek Olšák <maraeo@gmail.com> r300g/swtcl: move index buffer updates from swtcl_draw_vbo into set_index_buffer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
21b012d3b022c1c55358226f7bcc52fe50078123 11-May-2012 Marek Olšák <maraeo@gmail.com> r300g/swtcl: malloc vertex and index buffers (don't use radeon DRM to get them)

Vertex and index buffers are never used by hardware, only by Draw.
SWTCL chipsets usually have very little memory, so this might help
with stability and reliability.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8a963d122d4b67209214b0483084ba950814f42b 11-May-2012 Marek Olšák <maraeo@gmail.com> r300g/swtcl: don't do stuff which is only for HWTCL
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
bdba35befac74a0bef0d1be657e4e77de628e28b 11-May-2012 Marek Olšák <maraeo@gmail.com> r300g: fix breakage after gallium-userbuf merge
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
0b7d48cbad86eaac21fce3793da41b46db8be3b4 24-Apr-2012 Marek Olšák <maraeo@gmail.com> gallium: add void *user_buffer to pipe_constant_buffer

This reduces CPU overhead when updating constants.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
43995c9470dd38cf80a60a169f5875de6798863f 24-Apr-2012 Marek Olšák <maraeo@gmail.com> gallium: remove pipe_context::redefine_user_buffer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
507337864fa80caf9f26602324d2c28dd0a75d61 24-Apr-2012 Marek Olšák <maraeo@gmail.com> gallium: change set_constant_buffer to be UBO-friendly
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a52b3338c6e51421e3836ae210cd98d9c1ec337b 10-Apr-2012 Marek Olšák <maraeo@gmail.com> u_vbuf: remove u_vbuf_resource
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
889238c8b1e6b8ac5eed30ec3122be94216ca7cf 31-Mar-2012 Marek Olšák <maraeo@gmail.com> u_vbuf: override create/bind/destroy_vertex_elements_state
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
2d03d4f4a365d7af5f4dac20700009152eba1682 31-Mar-2012 Marek Olšák <maraeo@gmail.com> u_vbuf: override set_vertex_buffers
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
31714ea4d5a20285f398286fe45b53d0609926dd 31-Mar-2012 Marek Olšák <maraeo@gmail.com> u_vbuf: override set_index_buffer

This makes u_vbuf_mgr call the driver instead of the other way around.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4a269a8dc0170c75ff22af3910786228727ea41e 13-Apr-2012 Tom Stellard <thomas.stellard@amd.com> r300/compiler: Clear loop registers in vertex shaders w/o loops

The loop registers weren't being cleared, so any shader that was
executed after a shader containing loops was at risk of having a loop
randomly inserted into it.

This fixes over one hundred piglit tests, although these test
only failed during full piglit runs and would pass if
run individually. The exact number of piglit tests that this patch
fixes will vary depending on the version of piglit and the order the
tests are run.

NOTE: This is a candidate for the stable branches.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c3481f341021c87c86a69bcf892447e55b0687e9 04-Apr-2012 Marek Olšák <maraeo@gmail.com> r300g/swtcl: fix polygon offset
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
da2123051c3923a2953cdd96f05ad684e7d3c8c3 31-Mar-2012 Marek Olšák <maraeo@gmail.com> r300g/swtcl: don't enter u_vbuf_mgr
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
5ce0598a034179eaacff96f39eaebf0ba0f30d4c 03-Apr-2012 Marek Olšák <maraeo@gmail.com> r300g/swtcl: don't print an error when getting ClipVertex

Draw can do it just fine.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ac3a765589a881c56f351514d6436760edd4a291 27-Jan-2012 Marek Olšák <maraeo@gmail.com> r300g: set minimum point size to 1.0 for non-sprite non-aa points
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
7023ed9e622a3a080ccc6a2739ba1ccd8775a345 23-Jan-2012 Marek Olšák <maraeo@gmail.com> r300g: nuke the fallback for fragment color clamping
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
bc1c8369384b5e16547c5bf9728aa78f8dfd66cc 23-Jan-2012 Marek Olšák <maraeo@gmail.com> st/mesa: do vertex and fragment color clamping in shaders

For ARB_color_buffer_float. Most hardware can't do it and st/mesa is
the perfect place for a fallback.
The exceptions are:
- r500 (vertex clamp only)
- nv50 (both)
- nvc0 (both)
- softpipe (both)

We also have to take into account that r300 can do CLAMPED vertex colors only,
while r600 can do UNCLAMPED vertex colors only. The difference can be expressed
with the two new CAPs.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
dc4c821f0817a3db716f965692fb701079f66340 10-Jan-2012 Marek Olšák <maraeo@gmail.com> Squash-merge branch 'gallium-clip-state'

Conflicts:
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/mesa/state_tracker/st_atom_clip.c

commit d919791f2742e913173d6b335128e7d4c63c0840
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 17:59:22 2012 +0100

d3d1x: adapt to new clip state

commit cfec82bca3fefcdefafca3f4555285ec1d1ae421
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 14:16:51 2012 +0100

gallium/docs: update for clip state changes

commit c02bfeb81ad9f62041a2285ea6373bbbd602912a
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 14:21:43 2012 +0100

tgsi: add TGSI_PROPERTY_PROHIBIT_UCPS

commit d4e0a785a6a23ad2f6819fd72e236acb9750028d
Author: Brian Paul <brianp@vmware.com>
Date: Thu Jan 5 08:30:00 2012 -0700

tgsi: consolidate TGSI string arrays in new tgsi_strings.h

There was some duplication between the tgsi_dump.c and tgsi_text.c
files. Also use some static assertions to help catch errors when
adding new TGSI values.

v2: put strings in tgsi_strings.c file instead of the .h file.

Reviewed-by: Dave Airlie <airlied@redhat.com>

commit c28584ce0d8c62bd92c8f140729d344f88a0b3cd
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 12:48:09 2012 +0100

gallium: extend user_clip_plane_enable to apply to clip distances

commit f1d5016c07f786229ed057effbe55fbfd160b019
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Jan 6 02:39:09 2012 +0100

nvfx: adapt to new clip state

commit 6f6fa1c26bd19f797c1996731708e3569c9bfe24
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Jan 6 01:41:39 2012 +0100

st/mesa: fix DrawPixels with GL_DEPTH_CLAMP

commit c86ad730aa1c017788ae88a55f54071bf222be12
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Tue Jan 3 23:51:30 2012 +0100

nv50: adapt to new clip state

commit 3a8ae6ac243bae5970729dc4057fe02d992543dc
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Tue Jan 3 23:32:36 2012 +0100

nvc0: adapt to new clip state

commit 6243a8246997f8d2fcc69ab741a2c2dea080ff11
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Dec 29 01:32:51 2011 +0100

draw: initalize pt.user.planes in draw_init

This fixes a crash in glean/fpexceptions.

commit e3056524b19b56d473f4faff84ffa0eb41497408
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Dec 26 06:26:55 2011 +0100

svga: adapt to new clip state

commit c5bfa8b37d6d489271df457229081d6bbb51b4b7
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 14:11:51 2011 +0100

r600g: adapt to new clip state

commit f11890905362f62627c4a28a8255b76eb7de7df2
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 14:10:26 2011 +0100

r300g: adapt to new clip state

commit e37465327c79a01112f15f6278d9accc5bf3103f
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 12:39:16 2011 +0100

draw: adapt to new clip state

This adds a regression in the LLVM clipping path. Can anybody see anything
wrong with the code? It works for every other case, just glean/fpexceptions
crashes when doing the "Infinite clip plane test".

commit b474d2b18c72d965eefae4e427c269cba5ce6ba2
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 13:14:59 2011 +0100

u_blitter: don't save/set/restore clip state

commit 9dd240ea91f523a677af45e8d0adb9e661e28602
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 13:11:56 2011 +0100

gallium: don't cso_save/set/restore clip state

The enable bits are in the rasterizer state.

commit a4f7031179f5f4ad524b34b394214b984ac950f6
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 12:58:55 2011 +0100

gallium: default depth_clip to 1

depth_clip = !depth_clamp

commit fe21147a00ab90e549d63fe12ee4625c9c2ffcc3
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Dec 26 06:14:19 2011 +0100

trace,util: update state logging to new clip state

Also dump the other missing flags.

commit 2a3b96e84ac872dcc5bc1de049fe76bb58d64b23
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 10:43:43 2011 +0100

st/mesa: adapt to new clip state

commit b7b656a42fca19d7c85267f42649a206a85a2c72
Author: Marek Olšák <maraeo@gmail.com>
Date: Sat Dec 17 15:45:19 2011 +0100

gallium: move state enable bits from clip_state to rasterizer_state
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ce9d61fec64138ebf8d0bec2511e66593297b7d5 29-Dec-2011 Marek Olšák <maraeo@gmail.com> r300g: rework resource_copy_region, not changing pipe_resource

Changing pipe_resource was wrong, because it can be used by other contexts
at the same time. This fixes the last possible race condition in r300g
that I know of.

This also fixes blitting NPOT compressed textures. Random pixels sometimes
appeared at the right-hand edge of the texture.

Finally, this removes r300_texture_desc::stride_in_pixels. It makes little
sense with sampler views and surfaces being able to override width0, height0,
and the format entirely.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
35d2764f853fa749e36871d11fc22ced2a851702 13-Dec-2011 Marek Olšák <maraeo@gmail.com> r300g: take advantage of KEEP_TILING_FLAGS flush flag

This fixes at least two multi-context-related races.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
bb71f9249a66b9a4921a878766c0a2d87624c369 19-Nov-2011 Marek Olšák <maraeo@gmail.com> gallium: separate out floating-point CAPs into its own enum

The motivation behind this is to add some self-documentation in the code
about how each CAP can be used.

The idea is:
- enum pipe_cap is only valid in get_param
- enum pipe_capf is only valid in get_paramf

Which CAPs are floating-point have been determined based on how everybody
except svga implemented the functions. svga have been modified to match all
the other drivers.

Besides that, the floating-point CAPs are now prefixed with PIPE_CAPF_.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a18dad8055b452595a1ddece7da912ab67a850af 20-Nov-2011 Marek Olšák <maraeo@gmail.com> r300g: use u_vbuf_mgr to set/get the index buffer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
28fb79891101c23c75982726c81112caa96f9275 25-Sep-2011 Marek Olšák <maraeo@gmail.com> u_vbuf_mgr: s/u_vbuf_mgr_/u_vbuf_
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
837dc6101120a90f7a8d29ea45cf8e849a3542c2 11-Jun-2011 Marek Olšák <maraeo@gmail.com> r300g: max_anisotropy of 1 is not anisotropic filtering
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c4175c811eda0958db08875e4b44b31e4ef15b48 31-May-2011 Marek Olšák <maraeo@gmail.com> r300g: log when getting unsupported texture format
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f76787b3eae3f0b8af839fabfb24b57715a017f6 29-May-2011 Marek Olšák <maraeo@gmail.com> r300g: fix occlusion queries when depth test is disabled or zbuffer is missing

From now on, depth test is always enabled in hardware.

If depth test is disabled in Gallium, the hardware Z function is set to ALWAYS.

If there is no zbuffer set, the colorbuffer0 memory is set as a zbuffer
to silence the CS checker.

This fixes piglit:
- occlusion-query-discard
- NV_conditional_render/bitmap
- NV_conditional_render/drawpixels
- NV_conditional_render/vertex_array
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fdd37af3f76ea3ac32f21e9a9c41979a9b33cc5c 07-May-2011 Marek Olšák <maraeo@gmail.com> r300g: dynamically ask for and release Hyper-Z access

We ask for Hyper-Z access when clearing a zbuffer.
We release it if no zbuffer clear has been done for 2 seconds.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
56b39fcd8b6810a35db36c4d93129890b3e93052 07-May-2011 Marek Olšák <maraeo@gmail.com> r300g: remove redundant state variable hyperz_locked
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d35aeff4bb0b03450b2c3c08bd7f84db5bf43283 18-Apr-2011 Marek Olšák <maraeo@gmail.com> r300g/winsys: rename r300->radeon and do a little cleanup

Renaming a few files, types, and functions.
Also make the winsys independent of r300g.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
69c71396c6e947cbdf878bacb655d472a11c7708 08-Apr-2011 Marek Olšák <maraeo@gmail.com> r300g: fix another crash with hyperz

https://bugs.freedesktop.org/show_bug.cgi?id=36086
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4af3fe857dc07923af8786b434dee32d493b577e 05-Apr-2011 Marek Olšák <maraeo@gmail.com> r300g: postpone fragment shader state validation until draw_vbo
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f03791467090db49e5c3d6111cd8d2a7cbe31d75 16-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: enable clamping controls
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
79ddcb93fbd9d9786e4c7a6da4c71005b587a1bb 08-Mar-2011 Marek Olšák <maraeo@gmail.com> r300g: implement the texture barrier
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
23ccab39cd6b89efd8be238c3061e7ddb3697a55 13-Mar-2011 Marek Olšák <maraeo@gmail.com> r300g: clamp after blending for fixed-point formats only
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4b92c688a45480027390764b06077105298666c3 12-Mar-2011 Marek Olšák <maraeo@gmail.com> r300g: implement fragment color clamping in the shader

This finishes the implementation of the fragment color clamp control
for ARB_color_buffer_float. I don't wanna keep this stuff in a branch...
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
307408a4f89be2613cac39c5f0cd776a71039965 04-Mar-2011 Marek Olšák <maraeo@gmail.com> r300g: cleanup parameters of draw functions
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
bdb811772fe1b11e32172b211d9935d37093c753 16-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: preliminary implementation of clamping controls
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
10a893106be9dc4c843100468d8575b07ba6c4b9 04-Mar-2011 Marek Olšák <maraeo@gmail.com> r300g: implement FP16 alpha test
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
910bac63dfc5c6d9bf7162388c951784eba534f6 04-Mar-2011 Marek Olšák <maraeo@gmail.com> r300g: implement blending for some of non-RGBA8 formats

Blending is now fully supported with:
- R8_UNORM
- R8G8_UNORM
- B8G8R8A8_UNORM
- R16G16B16A16_FLOAT (r500-only)

Blending is partially supported (DST_ALPHA not working) with:
- L8A8_UNORM
- I8_UNORM
- B5G5R5A1_UNORM
- B10G10R10A2_UNORM

The other formats can't do blending.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a6314eb47f0c916c51362dfbd0f1db21e72745ee 02-Mar-2011 Marek Olšák <maraeo@gmail.com> r300g: require DRM 2.3.0 (kernel 2.6.34)

Running any older kernel is not recommended anyway.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d99ec708afbb785ce05031661222b38c9447059f 28-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: fix HiZ memory size computation and deciding when to use HiZ

I removed the HiZ memory management, because the HiZ RAM is too small
and I also did it in hope that HiZ will be enabled more often.

This also sets aligned strides to HIZ_PITCH and ZMASK_PITCH.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fd8d4b32ede6ebeae332539b71d38c36420e2654 18-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: remove tracking whether vertex buffers need to be validated

This was getting hard to maintain and didn't really bring any real benefits.
Instead, validate buffers when the vertex array state is dirty.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fa3f1348e49feeac511dbe5b22bbddc47f56ba81 16-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: fix a race between CS and SET_TILING ioctls
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4faf11ad6c44902e17c648c28d40e10067f83612 15-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: fix SIGFPE on debug builds
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
588fa884d212eba5ffbc69fda75db37d7c77214c 09-Feb-2011 Marek Olšák <maraeo@gmail.com> gallium: notify drivers about possible changes in user buffer contents

Also implement the redefine_user_buffer hook in the drivers.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
437583ea637ab402a06ae6683af6df35d52512d4 14-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: cleanup the draw functions
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6ccab620a0e7364ab6c0d902b3ddf58ee988f7fa 23-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: import the last bits of libdrm and cleanup the whole thing

Based on Dave's branch.

The majority of this commit is a cleanup, mainly renaming things.
There wasn't much code to import, just ioctl calls.

Also done:
- implemented unsynchronized bo_map (important optimization!)
- radeon_bo_is_referenced_by_cs is no longer a refcount hack
- dropped the libdrm_radeon dependency

I'm surprised that this has resulted in less code in the end.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
56ba7e913fef0ea2b1bead582108f9ab3ab8263d 10-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: consolidate buffers and textures to r300_resource

Transfers and create/destroy are still handled separately.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ce9c0d280104c8001a3ee360b07218ad3d260e46 10-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: simplify WRITE_RELOC API and cleanup
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c95bc1224a4b20b9470ddcb37b5f78975991073b 07-Feb-2011 Marek Olšák <maraeo@gmail.com> r300g: use the new vertex buffer manager
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8d0a540020f6389ca5efcd0e1fbef45a4a1f5b6a 29-Jan-2011 Marek Olšák <maraeo@gmail.com> r300g: rework vertex format fallback

1) Only translate the [min_index, max_index] range.
2) Upload translated vertices via the uploader.
3) Rename valid_vertex_buffer[] to real_vertex_buffer[]
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
db299a9f8244d53d9041fcdbd396a77ebe1f9e3e 25-Jan-2011 Marek Olšák <maraeo@gmail.com> r300g: fix some bugs with zbuffer compression (v4)

This drops the memblock manager for ZMASK. Instead, only one zbuffer can be
compressed at a time. Note that this does not necessarily have to be slower.
When there is a large number of zbuffers, compression might be used more often
than it was before. It's also easier to debug.

How it works:
1) 'clear' turns the compression on.
2) If some other zbuffer is set or the currently-bound zbuffer is used
for texturing, the driver decompresses it and then turns the compression off.

Notes:
- The ZMASK clear has been refactored, so that only one packet3 is used to clear
ZMASK.
- The 8x8 compression mode is disabled. I couldn't make it work without issues.
- Also removed driver-specific stuff from u_blitter.

Driver status:
- RV530 and R580 appear to just work (finally).
- RV570 should work, but there may be an issue that we don't correctly
calculate the number of dwords to clear, resulting in a partially
uninitialized zbuffer.
- RS690 misrenders as if no ZMASK clear happened. No idea what's going on.
- RV350 may even hardlock. This issue was already present and this patch doesn't
fix it.

I think we are still missing some hardware info we need to make the zbuffer
compression work fully.

Note that there is also an issue with HiZ, resulting in a sort of blocky
zigzagged corruption around some objects.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
09109c11d9efd78c0f87fc55911e03eda5fd980b 24-Jan-2011 Marek Olšák <maraeo@gmail.com> r300g: remove any traces of depth_clamp

I couldn't make it work.

GB_TILE_CONFIG.Z_EXTENDED, which enables per-pixel Z clamping, and
VAP_CLIP_CNTL.CLIP_DISABLE, which disables clipping, do help, but they
also add regressions like random graphics corruptions in some games.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
96d8a54716d96bd28f0c54a25ca6904fb4321a55 08-Jan-2011 Łukasz Krotowski <lukasz.krotowski@gmail.com> r300g: Remove invalid assertion.

Invalid after be1af4394e060677b7db6bbb8e3301e38a3363da (user buffer
creation with width0 == ~0).

Signed-off-by: Marek Olšák <maraeo@gmail.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
be1af4394e060677b7db6bbb8e3301e38a3363da 26-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: derive user buffer sizes at draw time

This only uploads the [min_index, max_index] range instead of [0, userbuf size],
which greatly speeds up user buffer uploads.

This is also a prerequisite for atomizing vertex arrays in st/mesa.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
31afa7616e3c11e9874f3297ac66ebdd50a67186 27-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: skip buffer validation of upload buffers when appropriate

because the upload buffers are reused for subsequent draw operations.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
48ed458e8730a6c63fd98ad531e5d51335db1b11 29-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: support user buffers as constant buffers
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
33e0b726e8837a3456e224d169170ead25ee2fc5 28-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: rename aos to vertex arrays
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4e52e8f746e3565bf3fe9ba8e4e3744ce0302478 18-Dec-2010 Dave Airlie <airlied@redhat.com> r300g: add support for color0 writes to all bound color buffers.

Thanks to Marek Olšák for making my initial attempt actually work.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
daffaca53e47faeaaefb98ca46fe4870133d9f02 17-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: finally fix the texture corruption on r3xx-r4xx

Even though a bound texture stays bound when calling set_fragment_sampler_views,
it must be assigned a new cache region depending on the occupancy of other
texture units.

This fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=28800

Thanks to Álmos <aaalmosss@gmail.com> for finding the bug in the code.

NOTE: This is a candidate for both the 7.9 and 7.10 branches.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
2af8a1983180fc0168c1e0e53bcc69ee3d684ea4 11-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: fix rendering with a vertex attrib having a zero stride

The hardware apparently does support a zero stride, so let's use it.

This fixes missing objects in ETQW, but might also fix a ton of other
similar-looking bugs.

NOTE: This is a candidate for both the 7.9 and 7.10 branches.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4953ba6a717ad1d3aa4426d147b52d05932c47ab 07-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: validate buffers only if any of bound buffers is changed

This prevents needless buffer validation (CS space checking).
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
78068a5fbfc21fb52b289a81142b4211628f845c 07-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: cache packet dwords of 3D_LOAD_VBPNTR in a command buffer if possible

It's not always possible to preprocess the content of 3D_LOAD_VBPNTR
in a command buffer, because the offset to all vertex buffers (which
the packet depends on) is derived from the "start" parameter of draw_arrays
and the "indexBias" parameter of draw_elements, but we can at least lazily
make a command buffer for the case when offset == 0, which should occur
most of the time.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
66d45567b4e2c6f2585789b68667e6c00b7567e1 04-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: optimize looping over atoms

This also removes DBG_STATS (the stats can be obtained with valgrind instead).
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c1365606c5b89872af4a0931e20f5cb78875eea6 03-Dec-2010 Dave Airlie <airlied@redhat.com> r300g: try and use all of vertex constant space

Finished up by Marek Olšák.

We can set the constant space to use a different area per-call to the shader,
we can avoid flushing the PVS as often as we do by spreading out the constants
across the whole constant space.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1774273bde184acb95ce0ba0bfd8a0d86d04ea8f 05-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: do not use the index parameter in set_constant_buffer

It appears to be a constant buffer index (in case there are more constant
buffers explicitly used by a shader), i.e. something that Gallium currently
does not use. We treated it incorrectly as the offset to a constant buffer.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
b088b255ecec68154d56db801151b5d7764b0837 03-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: fix pointer arithmetic with void* in transfer_inline_write
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3ba8843307a909f35f2a04e6be6dcadd760ad82b 03-Dec-2010 Marek Olšák <maraeo@gmail.com> r300g: use internal BO handle for add_buffer and write_reloc

Small perf improvement in ipers.

radeon_drm_get_cs_handle is exactly what this commit tries to avoid
in every write_reloc.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4c7001462607e6e99e474d6271dd481d3f8f201c 02-Dec-2010 Roland Scheidegger <sroland@vmware.com> gallium: support for array textures and related changes

resources have a array_size parameter now.
get_tex_surface and tex_surface_destroy have been renamed to create_surface
and surface_destroy and moved to context, similar to sampler views (and
create_surface now uses a template just like create_sampler_view). Surfaces
now really should only be used for rendering. In particular they shouldn't be
used as some kind of 2d abstraction for sharing a texture. offset/layout fields
don't make sense any longer and have been removed, width/height should go too.
surfaces and sampler views now specify a layer range (for texture resources),
layer is either array slice, depth slice or cube face.
pipe_subresource is gone array slices (or cube faces) are now treated the same
as depth slices in transfers etc. (that is, they use the z coord of the
respective functions).

Squashed commit of the following:

commit a45bd509014743d21a532194d7b658a1aeb00cb7
Merge: 1aeca28 32e1e59
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Dec 2 04:32:06 2010 +0100

Merge remote branch 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/drivers/i915/i915_resource_texture.c
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/drivers/i915/i915_surface.c

commit 1aeca287a827f29206078fa1204715a477072c08
Merge: 912f042 6f7c8c3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Dec 2 00:37:11 2010 +0100

Merge remote branch 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/state_trackers/vega/api_filters.c
src/gallium/state_trackers/vega/api_images.c
src/gallium/state_trackers/vega/mask.c
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/st_inlines.h
src/gallium/state_trackers/vega/vg_context.c
src/gallium/state_trackers/vega/vg_manager.c

commit 912f042e1d439de17b36be9a740358c876fcd144
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Dec 1 03:01:55 2010 +0100

gallium: even more compile fixes after merge

commit 6fc95a58866d2a291def333608ba9c10c3f07e82
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Dec 1 00:22:26 2010 +0100

gallium: some fixes after merge

commit a8d5ffaeb5397ffaa12fb422e4e7efdf0494c3e2
Merge: f7a202f 2da02e7
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Nov 30 23:41:26 2010 +0100

Merge remote branch 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/state_trackers/vega/api_images.c
src/gallium/state_trackers/vega/vg_context.c

commit f7a202fde2aea2ec78ef58830f945a5e214e56ab
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Nov 24 19:19:32 2010 +0100

gallium: even more fixes/cleanups after merge

commit 6895a7f969ed7f9fa8ceb788810df8dbcf04c4c9
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Nov 24 03:07:36 2010 +0100

gallium: more compile fixes after merge

commit af0501a5103b9756bc4d79167bd81051ad6e8670
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Nov 23 19:24:45 2010 +0100

gallium: lots of compile fixes after merge

commit 0332003c2feb60f2a20e9a40368180c4ecd33e6b
Merge: 26c6346 b6b91fa
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Nov 23 17:02:26 2010 +0100

Merge remote branch 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/auxiliary/gallivm/lp_bld_sample.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_blitter.c
src/gallium/auxiliary/util/u_inlines.h
src/gallium/auxiliary/util/u_surface.c
src/gallium/auxiliary/util/u_surfaces.c
src/gallium/docs/source/context.rst
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/nv50/nv50_state_validate.c
src/gallium/drivers/nvfx/nv04_surface_2d.c
src/gallium/drivers/nvfx/nv04_surface_2d.h
src/gallium/drivers/nvfx/nvfx_buffer.c
src/gallium/drivers/nvfx/nvfx_miptree.c
src/gallium/drivers/nvfx/nvfx_resource.c
src/gallium/drivers/nvfx/nvfx_resource.h
src/gallium/drivers/nvfx/nvfx_state_fb.c
src/gallium/drivers/nvfx/nvfx_surface.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_buffer.c
src/gallium/drivers/r600/r600_context.h
src/gallium/drivers/r600/r600_screen.c
src/gallium/drivers/r600/r600_screen.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c
src/gallium/include/pipe/p_defines.h
src/gallium/state_trackers/egl/common/egl_g3d_api.c
src/gallium/state_trackers/glx/xlib/xm_st.c
src/gallium/targets/libgl-gdi/gdi_softpipe_winsys.c
src/gallium/targets/libgl-gdi/libgl_gdi.c
src/gallium/tests/graw/tri.c
src/mesa/state_tracker/st_cb_blit.c
src/mesa/state_tracker/st_cb_readpixels.c

commit 26c6346b385929fba94775f33838d0cceaaf1127
Author: Roland Scheidegger <sroland@vmware.com>
Date: Mon Aug 2 19:37:21 2010 +0200

fix more merge breakage

commit b30d87c6025eefe7f6979ffa8e369bbe755d5c1d
Merge: 9461bf3 1f1928d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Mon Aug 2 19:15:38 2010 +0200

Merge remote branch 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_rast_priv.h
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_screen_buffer.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_texture.h
src/gallium/drivers/r300/r300_transfer.c
src/gallium/drivers/r600/r600_screen.c
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c
src/gallium/drivers/r600/r600_texture.h
src/gallium/state_trackers/dri/common/dri1_helper.c
src/gallium/state_trackers/dri/sw/drisw.c
src/gallium/state_trackers/xorg/xorg_exa.c

commit 9461bf3cfb647d2301364ae29fc3084fff52862a
Merge: 17492d7 0eaccb3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jul 15 20:13:45 2010 +0200

Merge commit 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/auxiliary/util/u_blitter.c
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_surface.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_transfer.c
src/gallium/tests/trivial/quad-tex.c

commit 17492d705e7b7f607b71db045c3bf344cb6842b3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Jun 18 10:58:08 2010 +0100

gallium: rename element_offset/width fields in views to first/last_element

This is much more consistent with the other fields used there
(first/last level, first/last layer).
Actually thinking about removing the ugly union/structs again and
rename first/last_layer to something even more generic which could also
be used for buffers (like first/last_member) without inducing headaches.

commit 1b717a289299f942de834dcccafbab91361e20ab
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jun 17 14:46:09 2010 +0100

gallium: remove PIPE_SURFACE_LAYOUT_LINEAR definition

This was only used by the layout field of pipe_surface, but this
driver internal stuff is gone so there's no need for this driver independent
layout definition neither.

commit 10cb644b31b3ef47e6c7b55e514ad24bb891fac4
Merge: 5691db9 c85971d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jun 17 12:20:41 2010 +0100

Merge commit 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/docs/source/glossary.rst
src/gallium/tests/graw/fs-test.c
src/gallium/tests/graw/gs-test.c

commit 5691db960ca3d525ce7d6c32d9c7a28f5e907f3b
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jun 17 11:29:03 2010 +0100

st/wgl: fix interface changes bugs

commit 2303ec32143d363b46e59e4b7c91b0ebd34a16b2
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Jun 16 19:42:32 2010 +0100

gallium: adapt code to interface changes...

commit dcae4f586f0d0885b72674a355e5d56d47afe77d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Jun 16 19:42:05 2010 +0100

gallium: separate depth0 and array_size in the resource itself.

These fields are still mutually exclusive (since no 3d array textures exist)
but it ultimately seemed to error-prone to adapt all code accept the new
meaning of depth0 (drivers stick that into hardware regs, calculate mipmap
sizes etc.). And it isn't really cleaner anyway.
So, array textures will have depth0 of 1, but instead use array_size,
3D textures will continue to use depth0 (and have array_size of 1). Cube
maps also will use array_size to indicate their 6 faces, but since all drivers
should just be fine by inferring this themselves from the fact it's a cube map
as they always used to nothing should break.

commit 621737a638d187d208712250fc19a91978fdea6b
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Jun 16 17:47:38 2010 +0100

gallium: adapt code to interface changes

There are still usages of pipe_surface where pipe_resource should be used,
which should eventually be fixed.

commit 2d17f5efe166b2c3d51957c76294165ab30b8ae2
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Jun 16 17:46:14 2010 +0100

gallium: more interface changes

In particular to enable usage of buffers in views, and ability to use a
different pipe_format in pipe_surface.
Get rid of layout and offset parameter in pipe_surface - the former was
not used in any (public) code anyway, and the latter should either be computed
on-demand or driver can use subclass of pipe_surface.
Also make create_surface() use a template to be more consistent with
other functions.

commit 71f885ee16aa5cf2742c44bfaf0dc5b8734b9901
Merge: 3232d11 8ad410d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Mon Jun 14 14:19:51 2010 +0100

Merge commit 'origin/master' into gallium-array-textures

Conflicts:
src/gallium/auxiliary/util/u_box.h
src/gallium/drivers/nv50/nv50_surface.c
src/gallium/drivers/nvfx/nvfx_surface.c
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_transfer.c
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_screen.h
src/gallium/include/pipe/p_state.h

commit 3232d11fe3ebf7686286013c357b404714853984
Author: Roland Scheidegger <sroland@vmware.com>
Date: Mon Jun 14 11:40:04 2010 +0100

mesa/st: adapt to interface changes

still need to fix pipe_surface sharing
(as that is now per-context).
Also broken is depth0 handling - half the code assumes
this is also used for array textures (and hence by extension
of that cube maps would have depth 6), half the code does not...

commit f433b7f7f552720e5eade0b4078db94590ee85e1
Author: Roland Scheidegger <sroland@vmware.com>
Date: Mon Jun 14 11:35:52 2010 +0100

gallium: fix a couple of bugs in interface chnage fixes

commit 818366b28ea18f514dc791646248ce6f08d9bbcf
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:42:11 2010 +0200

targets: adapt to interface changes

Yes even that needs adjustments...

commit 66c511ab1682c9918e0200902039247793acb41e
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:41:13 2010 +0200

tests: adapt to interface changes

Everything needs to be fixed :-(.

commit 6b494635d9dbdaa7605bc87b1ebf682b138c5808
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:39:50 2010 +0200

st: adapt non-rendering state trackers to interface changes

might not be quite right in all places, but they really don't want
to use pipe_surface.

commit 00c4289a35d86e4fe85919ec32aa9f5ffe69d16d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:38:48 2010 +0200

winsys: adapt to interface changes

commit 39d858554dc9ed5dbc795626fec3ef9deae552a0
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:26:54 2010 +0200

st/python: adapt to interface changes

don't think that will work, sorry.

commit 6e9336bc49b32139cec4e683857d0958000e15e3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:26:07 2010 +0200

st/vega: adapt to interface changes

commit e07f2ae9aaf8842757d5d50865f76f8276245e11
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:25:56 2010 +0200

st/xorg: adapt to interface changes

commit 05531c10a74a4358103e30d3b38a5eceb25c947f
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:24:53 2010 +0200

nv50: adapt to interface changes

commit 97704f388d7042121c6d496ba8c003afa3ea2bf3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:24:45 2010 +0200

nvfx: adapt to interface changes

commit a8a9c93d703af6e8f5c12e1cea9ec665add1abe0
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:24:01 2010 +0200

i965g: adapt to interface changes

commit 0dde209589872d20cc34ed0b237e3ed7ae0e2de3
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:22:38 2010 +0200

i915g: adapt to interface changes

commit 5cac9beede69d12f5807ee1a247a4c864652799e
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:20:58 2010 +0200

svga: adapt to interface changes

resource_copy_region still looking fishy.
Was not very suited to unified zslice/face approach...

commit 08b5a6af4b963a3e4c75fc336bf6c0772dce5150
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:20:01 2010 +0200

rbug: adapt to interface changes

Not sure if that won't need changes elsewhere?

commit c9fd24b1f586bcef2e0a6e76b68e40fca3408964
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:19:31 2010 +0200

trace: adapt to interface changes

commit ed84e010afc5635a1a47390b32247a266f65b8d1
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:19:21 2010 +0200

failover: adapt to interface changes

commit a1d4b4a293da933276908e3393435ec4b43cf201
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:19:12 2010 +0200

identity: adapt to interface changes

commit a8dd73e2c56c7d95ffcf174408f38f4f35fd2f4c
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:18:55 2010 +0200

softpipe: adapt to interface changes

commit a886085893e461e8473978e8206ec2312b7077ff
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:18:44 2010 +0200

llvmpipe: adapt to interface changes

commit 70523f6d567d8b7cfda682157556370fd3c43460
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:18:14 2010 +0200

r600g: adapt to interface changes

commit 3f4bc72bd80994865eb9f6b8dfd11e2b97060d19
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:18:05 2010 +0200

r300g: adapt to interface changes

commit 5d353b55ee14db0ac0515b5a3cf9389430832c19
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:17:37 2010 +0200

cell: adapt to interface changes

not even compile tested

commit cf5d03601322c2dcb12d7a9c2f1745e2b2a35eb4
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:14:59 2010 +0200

util: adapt to interface changes

amazing how much code changes just due to some subtle interface changes?

commit dc98d713c6937c0e177fc2caf23020402cc7ea7b
Author: Roland Scheidegger <sroland@vmware.com>
Date: Sat Jun 12 02:12:40 2010 +0200

gallium: more interface fail, docs

this also changes flush_frontbuffer to use a pipe_resource instead of
a pipe_surface - pipe_surface is not meant to be (or at least no longer)
an abstraction for standalone 2d images which get passed around.
(This has also implications for the non-rendering state-trackers.)

commit 08436d27ddd59857c22827c609b692aa0c407b7b
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jun 10 17:42:52 2010 +0200

gallium: fix array texture interface changes bugs, docs

commit 4a4d927609b62b4d7fb9dffa35158afe282f277b
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Jun 3 22:02:44 2010 +0200

gallium: interface changes for array textures and related cleanups

This patch introduces array textures to gallium (note they are not immediately
usable without the associated changes to the shader side).
Also, this abandons pipe_subresource in favor of using level and layer
parameters since the distinction between several faces (which was part of
pipe_subresource for cube textures) and several z slices (which were not part
of pipe_subresource but instead part of pipe_box where appropriate for 3d
textures) is gone at the resource level.
Textures, be it array, cube, or 3d, now use a "unified" set of parameters,
there is no distinction between array members, cube faces, or 3d zslices.
This is unlike d3d10, whose subresource index includes layer information for
array textures, but which considers all z slices of a 3d texture to be part
of the same subresource.
In contrast to d3d10, OpenGL though reuses old 2d and 3d function entry points
for 1d and 2d array textures, respectively, which also implies that for instance
it is possible to specify all layers of a 2d array texture at once (note that
this is not possible for cube maps, which use the 2d entry points, although
it is possible for cube map arrays, which aren't supported yet in gallium).
This should possibly make drivers a bit simpler, and also get rid of mutually
exclusive parameters in some functions (as z and face were exclusive), one
potential downside would be that 3d array textures could not easily be supported
without reverting this, but those are nowhere to be seen.

Also along with adjusting to new parameters, rename get_tex_surface /
tex_surface_destroy to create_surface / surface_destroy and move them from
screen to context, which reflects much better what those do (they are analogous
to create_sampler_view / sampler_view_destroy).

PIPE_CAP_ARRAY_TEXTURES is used to indicate if a driver supports all of this
functionality (that is, both sampling from array texture as well as use a range
of layers as a render target, with selecting the layer from the geometry shader).
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6478a4de14d368bf85ba3477d73fd1bd91067e86 30-Nov-2010 Marek Olšák <maraeo@gmail.com> r300g: fix texture swizzling with compressed textures on r400-r500

This fixes all S3TC piglit/texwrap tests.

NOTE: This is a candidate for the 7.9 branch.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ffb732d8bd51f0a40379590a6485de2a56a2a306 14-Nov-2010 Marek Olšák <maraeo@gmail.com> r300g: fix rendering with no vertex elements

Fixes glsl-vs-point-size, although I meant to fix glsl-novertexdata.
Since swrast fails glsl-novertexdata too, I guess it's a core issue.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1d28936dea2062f89ecd204aabae5bfe06eb943a 07-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: rename has_hyperz -> can_hyperz
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
560ad7e59940423a696e93e62ec3c41b1e553421 03-Nov-2010 Guillermo S. Romero <gsromero@infernal-iceberg.com> r300g: Do not use buf param before checking for NULL.

Commit 8dfafbf0861fe3d2542332658dd5493851053c78 forgot to update r300g.
There is a buf == NULL check, but buf is used before for var init.

Tested-by: Guillermo S. Romero <gsromero@infernal-iceberg.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4743c7fbe766624889411f71ebfec87e09c6e21b 26-Sep-2010 Vinson Lee <vlee@vmware.com> r300g: Remove unused variable.

Fixes this GCC warning.
r300_state.c: In function 'r300_create_rs_state':
r300_state.c:925: warning: unused variable 'i'
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
81b7de5bf039ecefe104f9892e2bdeaee71e40c6 26-Sep-2010 Dave Airlie <airlied@redhat.com> r300g: fix glsl-fs-pointcoord

Move GB_ENABLE to derived rs state, and find sprite coord for the correct
generic and enable the tex coord for that generic.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
9f35dcd24cb520af5e39501672a3324000cdbfce 23-Sep-2010 Marek Olšák <maraeo@gmail.com> r300g: fix the border color for every format other than PIPE_FORMAT_B8G8R8A8

TX_BORDER_COLOR should be formatted according to the texture format.
Also the interaction with ARB_texture_swizzle should be fixed too.

NOTE: This is a candidate for the 7.9 branch.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c0c0c4b96b0174f1750c1e78bb12de65ec577bbf 23-Sep-2010 Dave Airlie <airlied@redhat.com> r300g: fix point sprite coord.

handled elsewhere now.

thanks to Droste on irc for pointing out the fix
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a922725118333e016a357008f37105c23c6f54bc 29-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g,u_blitter: use u_framebuffer

Removing another function duplication in u_blitter.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c0f0eb866880ff3e701cd3a532d49417f2743283 28-Aug-2010 Mathias Fröhlich <mathias.froehlich@gmx.net> r300g: fix min/max lod computation
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
dc27515780d5e1b3a7b3f9ab7119d3e35b22294c 25-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: fix potentially uninitialized variables in create_rs_state

It had no impact on correctness, though.

Reported by Vinson Lee.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
22f6026324f63c142925244ff575fefc29a90389 25-Aug-2010 Chia-I Wu <olv@lunarg.com> gallium: Use draw_set_index_buffer and others.

Update all drivers to use draw_set_index_buffer,
draw_set_mapped_index_buffer, and draw_vbo. Remove
draw_set_mapped_element_buffer and draw_set_mapped_element_buffer_range.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
879a73023189eed488db2840b829aa5c78e5ba3f 25-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: fix gl_PointCoord

Is this hackish or is this the correct way to use point_quad_rasterization?
Copied from nvfx.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
0a21938de92a1f1e74be7c4559b03179bd657fcd 24-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: eliminate unused constants in FS
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
abae06ac85349a30996257f29f9c52c3f687d35d 23-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: eliminate unused constants in VS
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
62eb9eda1d15acc180b4e144cc14427980419d07 24-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: clean up some mess in set_constant_buffer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
2eeaf773fdd58c176f7cdbcd05b75ad3a5ecab4c 23-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: fix indentation
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d5a86f9fc9fc96a0d771c0409b557636ef89f350 15-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: do not use HiZ if HiZ RAM is not properly initialized
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
5f8ccf1e2766e3e7537dd8a838837c5e4af4246c 14-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: do not use fastfill if ZMask RAM is not properly initialized

z_fastfill -> dirty_zmask[level].
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
aa6bdd38af344f7f2ea9956d2ed415f26e8f07cb 13-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: fix fastfill when color and Z clear are invoked separately

This always restores the previous depth clear value after CBZB clear.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c298bab60ea63882f34825a35cbc60f662783e64 05-Aug-2010 Tom Stellard <tstellar@gmail.com> r300/compiler: Implement hardware assisted loops for vertex shaders.

Single loops work, but nested loops do not.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ab0a3f30b8070a0204c023f8ea5375f1d3f710fd 07-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: fix cbzb clears when hyperz is off
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a4be3b6b312496305de473b5af219a3afd84f6c6 05-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: fix fb_state atom size
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6eb2a7fbafd49e75b6cbbee57f23dda63eff73ef 07-Jul-2010 Dave Airlie <airlied@redhat.com> r300g: implement hyper-z support. (v4)

This implements fast Z clear, Z compression, and HiZ support for r300->r500
GPUs.

It also allows cbzb clears when fast Z clears are being used for the ZB.

It requires a kernel with hyper-z support.

Thanks to Marek Olšák <maraeo@gmail.com>, who started this off, and Alex Deucher at AMD for providing lots of hints.

v2:
squashed zmask ram size fix]
squashed r300g/blitter: fix Z readback when compressed]

v3:
rebase around texture changes in master - .1 fix more bits

v4:
migrated to using u_mm in r300_texture to manage hiz/zmask rams consistently
disabled HiZ when using OQ
flush z-cache before turning hyper-z off
update hyper-z state on dsa state change
store depthclearvalue across cbzb clears and replace it afterwards.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
57438adf3217955f16491ef8deeffafe05c2f7f8 03-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: handle polygon offset correctly

https://bugs.freedesktop.org/show_bug.cgi?id=29372
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
afa925066c158ac49e3b0f883f67debd8545bf26 02-Aug-2010 Marek Olšák <maraeo@gmail.com> r300g: fix hardlock when using more than one stuffed sprite coords

If texture coordinates come from the vertex shader, there are always
4 components in the rasterizer input packet, but if the coordinates
are stuffed (like for point sprites), there are only 2 or 3 components
(based on GB_ENABLE) and if we rasterize more, it locks up.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d8d7a3e0f9629a220e2394dd7c6634f2d6a93e20 29-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g/swtcl: fix crash in ETQW and minor fixups

The Draw flush inside r300_flush was the culprit.

Also, no need to flush Draw when changing a state since the flush is
already inside swtcl_draw_vbo.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6d28bf917fb1d741d90fd3f05c22769376021fca 15-Jul-2010 Chia-I Wu <olv@lunarg.com> gallium: Implement draw_vbo and set_index_buffer for all drivers.

Some drivers define a generic function that is called by all drawing
functions. To implement draw_vbo for such drivers, either draw_vbo
calls the generic function or the prototype of the generic function is
changed to match draw_vbo.

Other drivers have no such generic function. draw_vbo is implemented by
calling either draw_arrays and draw_elements.

For most drivers, set_index_buffer does not mark the state dirty for
tracking. Instead, the index buffer state is emitted whenever draw_vbo
is called, just like the case with draw_elements. It surely can be
improved.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6f2936c654c68388b9c43a189a1b8c06f3a9d241 25-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: implement D24X8 texture sampling for r3xx-r4xx

Because the hw can't sample it, I reinterpret the format as G16R16 and
sample the G component. This gives 16 bits of precision, which should be
enough for depth texturing (surprisingly, the sampled values are exactly
the same as in D16 textures).

This also enables EXT_packed_depth_stencil on those old chipsets, finally.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
49330fc5ac13e25cb201e62995329cffaf5046f0 24-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: do not use TXPITCH_EN if the width is POT and the height is NPOT
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d779a5d16ae6a17b3fc0c097f4eb477a80e54566 24-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: cleanup texture creation code

This decouples initializing a texture layout/miptree description
from an actual texture creation, it also partially unifies texture_create
and texture_from_handle.

r300_texture inherits r300_texture_desc, which inherits u_resource.

The CBZB clear criteria are moved to r300_texture_desc::cbzb_allowed[level].

And other minor cleanups.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ca7ead03da4481cd34933175898f4a924e588ad4 20-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: implement depth clamp

Depth clamping seems to be implicit if clipping is disabled.

It's not perfect, but it's good enough for wine and passes
the corresponding piglit tests.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
5725738ef6a4b5110064d4e2e0ce4f7609e875e4 21-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: cleanup clip state emission
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3eb557778376bcbbc6f25da88ffbaa269607254c 16-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: do not make copies of constant buffers, emit them directly
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fe3caa91d3f637bf9cf9f9e7adb992aa8c7ef8e4 14-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: rebuild winsys and command submission to support multiple contexts
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8c836f7f740c6f74511c727c7bed0680ddba9974 12-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: implement fast color clear

An initial implementation made by Dave Airlie.

For it to be used, a color-only clear must be invoked and exactly one
point-sampled render target must be set. The render target must be
macrotiled (for us to overcome alignment issues) and bpp must be either
16 or 32.

I can't see a difference in performance. :(

Conflicts:

src/gallium/drivers/r300/r300_blit.c
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
392a2515c0967c395be098cac6a37f325dd66b90 09-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: fix texturing with negative lod bias

This should fix FDO bugs #28437 and #28625.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
62c631b20576ddee9a3c3d53709ca2932b0fbf9f 08-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: add a function for marking framebuffer atoms as dirty
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
0e6d7ce0178d65787e3e10f56638c2f0a88296f1 03-Jul-2010 Marek Olšák <maraeo@gmail.com> r300g: fix warnings
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6a34287bb5147a3213e94d88c97db4ec403509ae 29-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: move one flush from winsys to the context

This flush happens when changing the tiling flags, and it should really be
done in the context.

I hope this fixes FDO bug #28630.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
0b50fcbd556ead8d35c2b543f13de433996a5822 29-Jun-2010 Marek Olšák <maraeo@gmail.com> util: reference surfaces and sampler views in blitter when saving them

Ooops. This should possibly fix some bugs...
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ce7a70b8b48a4dded9b1e29590b5101dacd56e0b 27-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: fix a compile error on non-debug builds
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
0a19d57b845b269601c862193ed801b19aa4c2f1 27-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: separate the hyperz state and pipelined FB regs out of the FB state
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
639a7daa85ccc016965a51e46298fd6fdf1ceec6 27-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: reference surfaces in set_framebuffer_state
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
0a9510814e2dfff57f7d73cc68aece0554ad794d 25-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: turn rasterizer state into a command buffer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c200c47e6c2f8581608b83e703d611db1bebd7f6 25-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: move emission of the MSPOS regs into the framebuffer state

Now the question is whether we are allowed to ignore gl_rasterization_rules and
pipe_rasterizer_state::multisample. The former is invariant anyway and
I think the latter would need re-emitting the AA state which is quite costly,
considering that it implicitly flushes the whole pipeline (all AA regs
in the AA state are *unpipelined*).
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fcacc6a076ee5bc894eb7f5a7943715ff1ddf9ee 25-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: introduce VAP invariant state

Unlike other invariant states, this one must be emitted after VAP flush.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
69adebf5945d994485c584c183c148fc2c1373ed 24-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: move AA registers into the new AA state
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
93bce03b275f66b6b2db410bbef38954de6a617c 24-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: separate the cache flush from the framebuffer state
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a2f14153cc2bcf0b2364e035dc788d65ea0fcd35 24-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: reorder and cleanup register writes everywhere
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
aa451d509df844e4652853f08e31bc1ee18c04ac 23-Jun-2010 Corbin Simpson <MostAwesomeDude@gmail.com> glhd: Grab framebuffer state checks from r300g.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
eb7ef433bbbeabda963e74adf0ef61c47883f292 22-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: optimize the immediate mode emission path a bit
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
646e9c2fd7b5974480fcbed0bef7281b4d4a0e65 20-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: fix assigning the texture cache region for 1 texture
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
e8f2adf8e3f381176703bf8bf4e927c8ce6bc891 20-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: manually assign texture cache regions

This should fix corrupted texturing on r3xx-r4xx.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
9b2ebcaf4b94bfc8756f6b216e0e452013616f2c 19-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: fix random pixels appearing / incomplete rendering

This should fix the FDO bug #28612.

Also, these piglit tests have been fixed:
- fbo-copypix
- scissor-copypixels
- copytexsubimage
- texredefine

Finally, 2 flushes in the transfer path are no longer needed.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ce4c9a7f25d57c6f2885c07743ef3d162584c997 19-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: fix clamp and mirror_clamp wrap modes when used with nearest filtering
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
371ca689ec5d1d7f301f4a3176c4e0df1c44ec15 19-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: improve the ZTOP condition

The real difference here is that ZTOP is now enabled if all stencil ops
are set to KEEP. This improves performance.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8ea45a2c0ec5e53210761753dc9122c2771ba57b 19-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: fix up the CS size of the rasterizer state
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
61145c0d5c1abe6882a076f57b1b51c83aedbc33 16-Jun-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Fix MSAA state size.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a91fea65dc574cc0ba2ccec936d60366b034489a 26-May-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Moar MSAA setup.

Need to just add the resolve, then go switch to new DRM and test.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
5c58618406bd5b4ee0bc5121f562560702ebbf98 26-May-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Old MSAA code from before gallium-msaa.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f558bcb397e4016558b58fef01997b323ed931b0 13-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: optimize emission of fragment shader constants
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3da6487115216c47ce1be56b45be654ddb879d6f 13-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: turn fragment shader into a CB
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
0a44efaeb91c7cef9b244ae86c4977b019a63c54 13-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: turn depth stencil state into a CB
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f8032116293a1faf4dd76f2cbc10a455b8cde6d7 13-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: turn clip state into a CB
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
9dd50993c6540729fe7c7397b4a947b3068db162 13-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: turn blend color into a CB
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
cd891648d45189555bace1bca6b7cddef5857f02 13-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: turn blend state into a CB
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ea0ec0b48e5adc0b71e52cd298fd71193ffd4a54 12-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: remove r300_state.h
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
028459b0bf2bb778b55493f9b23ab7f2c9b355a0 08-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: add fallback for unaligned/unsupported vertex stride/offset/format

There is a problem though, the translate module cannot emit half float
vertices.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fccfb7b16512a36424370dc1942cdedd3d1c208a 08-Jun-2010 Marek Olšák <maraeo@gmail.com> r300g: skip rendering for unsupported vertex formats instead of aborting

The next step is to replace skipping by an actual fallback.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
21dfcde3ff54e0d01ddd2c79b14db82b57541433 31-May-2010 Marek Olšák <maraeo@gmail.com> r300g: set correct pitch in libdrm

to match what DDX sets. This prevents some flushes from occuring.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ebe2b546633a3593c54190bb1f2d372d70de14cd 28-May-2010 Marek Olšák <maraeo@gmail.com> r300g: report vertex format support in is_format_supported
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
90e5a37d128efaca9e89434ab103826ee82cb911 27-May-2010 Marek Olšák <maraeo@gmail.com> r300g/swtcl: fix secondary color and back-face color outputs

These piglit tests have been fixed:
- bgra-sec-color-pointer
- glsl-routing

See comments at the beginning of r300_vs_draw.c

WPOS is implemented too but it doesn't work yet. I'm still working on it.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
76034aaf655134c71e1ec619085c46251d037720 26-May-2010 Marek Olšák <maraeo@gmail.com> r300g: decouple drawing code and two-sided stencil refvalue fallback

It's now more separate from the rest of the driver and it can be disabled
by commenting out just 1 line. Well, I couldn't make the previous version
work with SW TCL reliably, that's the reason of this little rework.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6ca3f86bdcadf850d7c8459c3674b6278a1fecea 26-May-2010 Marek Olšák <maraeo@gmail.com> r300g/swtcl: do not use u_upload_mgr and do not compute max_index
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3293bcdc80cdfa20a2381aae2b94505bdf95d857 21-May-2010 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-msaa'

Conflicts:
src/mesa/state_tracker/st_gen_mipmap.c
src/mesa/state_tracker/st_texture.c
ef9b4d20d78a748e653a61286d83f33dc6c46184 21-May-2010 Keith Whitwell <keithw@vmware.com> Merge branch 'gallium-front-ccw'
43234cee40c48e14a3eab4268181d9b0b2b7cf79 18-May-2010 Roland Scheidegger <sroland@vmware.com> gallium: implement set_sample_mask() in all drivers

prevents segfault when state trackers try to set default mask.
Other option would be to make this required only for drivers
supporting multisampling, but this seems more clean.
Only dummy implementations (for normal drivers) provided (no driver
supports multisampling yet neither).
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
9c264642c385557d64b9bc6bbe31d2d15e703aff 14-May-2010 Keith Whitwell <keithw@vmware.com> gallium: more work on ccw flag removal

The linux-debug target builds...
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
0bd1cbcd0d28dbadfb0c3e1f8b048a18b56bc72c 14-May-2010 Keith Whitwell <keithw@vmware.com> gallium: convert rasterizer state to use gl-style front/back concepts

Use front/back instead of cw/ccw throughout.
Also, use offset_point/line/fill instead of offset_cw/ccw.

Brings gallium representation of this state into line with its main
user, and also what turns out to be the most common hardware
representation.

This fixes a long-standing bias in the interface towards the
architecture of the software rasterizer.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
5f161261c70d680c6b227bbf84735348af0973c6 12-May-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Correct viewport setup for SW TCL.

glxgears now renders in the right place on-screen, although it is still
rather...psychedelic.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d044ecbe7625af1118655bcc9dba7ed00342534f 08-May-2010 Marek Olšák <maraeo@gmail.com> r300g: follow pipe_rasterizer_state::light_twoside
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
084580fa43320b1a0878b572c6804aa5a40b2f9d 08-May-2010 Marek Olšák <maraeo@gmail.com> r300g: follow pipe_rasterizer_state::point_size_per_vertex
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
34a5109bc2c3f625f178cb80c782b2218ba06f45 08-May-2010 Marek Olšák <maraeo@gmail.com> r300g: move GA_POINT_MINMAX back to rs_state

This basically reverts commit 74f94e8fdfe035fa68acdc19e6b0afc2957a4264.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ceafb391e60f63dba1cb998b00ef008d5364e61b 08-May-2010 Marek Olšák <maraeo@gmail.com> r300g: fix glean/pointSprite using lodbias correction
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
71584d0cc75dda3c579a2a0cb6c1ac9591f7d5c9 08-May-2010 Marek Olšák <maraeo@gmail.com> r300g: pass depth texture swizzle to the compiler if compare mode is enabled
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ac6a26b429d70395cf6def04d2d9c8cf1bd2c964 03-May-2010 Marek Olšák <maraeo@gmail.com> r300g: use util_format_short_name and util_format_is_plain
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
9d3360567346036f1c2b0b5e9de9bd123d883762 02-May-2010 Marek Olšák <maraeo@gmail.com> r300g: always set the pitch of the first miplevel in the tiling flags

This further reduces the number of DRM calls and flushes.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
82027b2027d7cdb2cc9cd55b4746f80600a62a4e 02-May-2010 Marek Olšák <maraeo@gmail.com> Revert "r300g: disable point sprites (again)"

This reverts commit 3e0f1719d411b34f77fd2a053ecf83b43bb836ca.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
68e720e12d51cf6d5237467a74af8c56b021acb7 02-May-2010 Marek Olšák <maraeo@gmail.com> r300g: merge VS output mapping state (VAP) to rasterizer block state (RS)

These two should be tied together because what's set in VAP or stuffed in GA
should be rasterized in RS. Not doing so causes a hardlock.

The reason for the merge is that if stuffed texture coordinates (e.g. point
sprite texgen) happen to occupy the texcoord slot dedicated to fog or wpos,
the two must be relocated to other free slots, which needs remapping the vertex
shader outputs.

The rasterizer code is now literally a sequence read-rasterize-write.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
45d79af644349882b4990b775737405be7cd1aa2 02-May-2010 Marek Olšák <maraeo@gmail.com> r300g: fix segfault when resizing a DRI2 framebuffer

Resetting tiling flags might happen after a texture is destroyed...
Looking at the kernel sources, we don't actually need to reset the tiling
flags.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
87547ac70ce0f8696d16336177003f881c9ee836 16-May-2010 Marek Olšák <maraeo@gmail.com> r300g/swtcl: fix point sprite texgen (do it in HW)
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f86ac27bf9203fdd9b7110dc843263307f475a99 15-May-2010 Marek Olšák <maraeo@gmail.com> r300g: fix psychedelic colors with SWTCL

r300_vertex_shader::outputs was uninitialized.
Also remove the tokens parameter.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
cf5dff1f2337303f49780dc646a44c6dbbe48e5a 15-May-2010 Marek Olšák <maraeo@gmail.com> r300g: the vertex_stream_state atom for SWTCL should be static

plus whitespace and comment fixes.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
93c997a9146e0b50186df684f4847fb0124ada11 14-May-2010 Marek Olšák <maraeo@gmail.com> r300g: do not abort if a constant buffer is too large

What else can we do with misbehaving apps?
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fc11653c2befa60358ca8661c6c6168db01824a9 14-May-2010 Marek Olšák <maraeo@gmail.com> r300g: add framebuffer state debug logging
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3b667700a5d88b71e6e7a41d1521754b393c022e 29-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: compose swizzles from texture formats and sampler views
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
307f28cf1e8aed0c764bb1e38752ff6f42fee2da 27-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: add support for more unaligned vertex formats

An aligned stride is still needed for it to work.

I am slowly approaching the Sauerbraten milestone!
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a961431285804e39e9089a9382954e454b9f6816 27-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: setup PSC first, then align vertex formats

This allows us to put correct swizzles for undefined components in PSC.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3e0f1719d411b34f77fd2a053ecf83b43bb836ca 26-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: disable point sprites (again)

They cause lockups. The users doesn't seem to like them.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
52e591383bdce49cb46a1162aff9632c57e06504 26-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: allow unaligned vertex formats if the stride is dword-aligned
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8f3bdeaad610d7d5a5c6e73e1e9c721219595754 19-Apr-2010 Brian Paul <brianp@vmware.com> Merge branch '7.8'

Conflicts:

src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_pipe_aaline.c
src/gallium/drivers/llvmpipe/lp_context.c
e3a34cc7f6c9f959cdc2af4486e84587fab4d0d7 19-Apr-2010 Brian Paul <brianp@vmware.com> gallium/draw: use correct rasterization state for wide/AA points/lines

When points or lines are decomposed into triangles, we need to be sure
to disable polygon culling, stippling, "un-filled" modes, etc.

This patch sets the rasterization state to disable those things prior to
drawing points/lines with triangles, then restores the previous state
afterward.

The new piglit point-no-line-cull test checks this problem & solution.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
851edfe3c9d24d2678a17a8fc74c31fbea0343c2 18-Apr-2010 Dave Airlie <airlied@redhat.com> r300g: fixup 0 stride buffer properly.

Just set the max index to 1, this lets doom3 run and seems correct,
though it would be better to just emit a constant like SVGA does.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6bd6f4cd4984e7afe7969e5dfe9796079c07b6bc 15-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: pick a new fragment shader when either a sampler state or view is changed
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3da70606b3af1e907d56666d199957b6da0c73fe 14-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: atomize VS constant buffer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
abc2f29dd2baa9c8aa672f07a1500e579364ab29 14-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: emit VS immediates along with VS code
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8316da7cd20c9538b58b8927cc14f1639b881008 13-Apr-2010 Vinson Lee <vlee@vmware.com> r300g: Silence uninitialized variable warning.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
745c4b568573fd5353e0f790251af64098742b1a 24-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: add generating texture coordinates for point sprites

[airlied -
Convert sprite coord index to a per-coord enable bit
set the rasteriser block up correctly for point sprites.

The inputs to the RS hw block change for sprite coords, so fix them up
properly - this fixes piglit point-sprite test.
]

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
136bd184a29945ab7ae0636ecef65e9db97f8e4d 12-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: atomize FS constant buffer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
5633392966f56a75cb2a675ef9594e987c4591b9 12-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: atomize compiler's state variables for fragment shader
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
34092c55d63e24a4f326bd9bb90765ea4ec7e17e 12-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: atomize fragment shader
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
13b86fe2075b700fc6530448a10fb6b3037e7c18 12-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: remove a false comment
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6eae8e4482b6d5e3d46e10473b05f16381736a5a 11-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: use a dummy replacement vertex shader if the shader compilation fails
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
69019afa67d66cf3e5d2b4d5b286bf2ac1bd87af 11-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: use a dummy replacement fragment shader if the shader compilation fails

Better than killing an application.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
146879284c6b844f35afe3a3ef3330726afbe8ac 11-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: revisit some assertions and fix potential failures

* Turn some assertions to error messages.
* At most 16 vertex elements can be set, others are ignored.
* Rasterize at most 8 vertex-shader generic outputs, others are ignored.
This includes fog and WPOS.
* Unknown shader semantic names are ignored.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
08afcaa56e187cdd137a5c6581c265c1a0fc8d18 11-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: use cliprects for scissoring

Cliprects can be disabled, scissors can't. It maps nicely to hardware.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1c356ac95b6df0962dbd15311ff7e0ea172e1aea 11-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: cleanup handling of sampler views

The evolution of TX_FORMAT bits is as follows:
* When a texture is created, set bits independent of pipe_format.
* When a sampler view is created, add format-specific bits.
* When sampler states and views are getting merged, add min/max LOD.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
21ba2cd63239eed4930959218cf5b03c56b26065 11-Apr-2010 Dave Airlie <airlied@redhat.com> r300g: hack around issue with doom3 and 0 stride

This is most likely a bug in the mesa state tracker, but do the quick hack
for now to avoid the divide by 0.

reported and hack generated by almos on #radeon

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
287c94ea4987033f9c99a2f91c5750c9083504ca 10-Apr-2010 Keith Whitwell <keithw@vmware.com> Squashed commit of the following:

commit 0189cb2fde9f5d7326fd4bfbc2e52db4cce73b3e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Apr 10 12:48:43 2010 +0100

gallium: don't use generic get_transfer func for textures

It doesn't know and can't fill in the stride value.

commit 65bc6f88fd9ce8ff90175b250e580bef2739ea35
Author: Chia-I Wu <olv@lunarg.com>
Date: Sat Apr 10 13:49:34 2010 +0800

i915g: Initialize screen surface function.

commit eb56e64986790aa2fa35534ce652b78656b0c3c5
Merge: f8b0a7f e7f1e5c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Apr 10 00:38:43 2010 +0100

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/r300/r300_texture.c

commit f8b0a7f6a3a98fd36ce90a81073ec8c8f09b684c
Merge: a3c9980 f43c679
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Apr 10 00:35:09 2010 +0100

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/r300/r300_texture.c

commit a3c99807de37dc2c072f1d75ed3a11da333bc9a1
Author: unknown <michal@.(none)>
Date: Fri Apr 9 18:51:39 2010 +0200

scons: Add missing sources.

commit 927cec79cedb457efa9e6f335727cfcb8e4908e2
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 18:07:56 2010 +0200

gallium: fix another compile warning after merge. Hmpf.

commit 52953cd7b0e51deafecb812bdc40f9e45f9ac62a
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 18:02:11 2010 +0200

gallium: fix comment

commit 7c8763aa6cfc74adf1ea49c2bab25ca17b32575f
Author: unknown <michal@.(none)>
Date: Fri Apr 9 18:05:20 2010 +0200

util: Fix type cast.

commit 9d0086411a104b7cc9297aac0d1f82853118d7bf
Author: unknown <michal@.(none)>
Date: Fri Apr 9 18:04:33 2010 +0200

libgl-gdi: Use proper unwrap functions for resources.

commit 251a5cdd18ba31c690ef61f133dfc65cd4a45cf8
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:51:23 2010 +0200

gallium: more comments fixup

commit 8f3f9d5e1e9c0de98a3dfb19e81250d2c32ee4e9
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:48:18 2010 +0200

gallium: another fix after merge

commit 41f00a32ee5be91512c048bacb89ede0e04bc08d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:44:30 2010 +0200

gallium: more pipe_texture/resource fixes after merge

commit faf53328d1154c51d8a59513f2bfcae62272b0bf
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 17:44:24 2010 +0200

gallium: fix comments for changed USAGE flags

commit fdcb17bea4b0798d316b56deea69832f41142adf
Author: Roland Scheidegger <sroland@vmware.com>
Date: Fri Apr 9 16:40:07 2010 +0200

gallium/pb: pb uses PB_USAGE_ flags, not PIPE_TRANSFER_ (same value anyway)

commit c95f7278ecc6db417ec1053279f2a8172c47aee9
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:44:35 2010 +0100

llvmpipe: fix merge glitches

commit 28f8b8683175149a381be5eff263d4c20568bce7
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:41:39 2010 +0100

r300g: update after merge for pipe_resources

commit 248c93cbc066ba6e3fadd94c5fcf3bdbb373d8fd
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:41:20 2010 +0100

st/mesa: fix old pipe_texture usages

commit a563b1c5c2cb57b3ef28a3654d9b477460d13ced
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:40:56 2010 +0100

r300g: remove unused variable

commit 734500131d828c9dfd68c5fa26b3e6b07e086d2d
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:40:36 2010 +0100

nv50: fix compiler warning

commit efd402e13037e5c3e29759fa5b1c754c6d65d0e2
Merge: fec8a1d 5452615
Author: Keith Whitwell <keithw@vmware.com>
Date: Fri Apr 9 13:33:57 2010 +0100

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/cell/ppu/cell_screen.c
src/gallium/drivers/cell/ppu/cell_texture.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_transfer.c
src/gallium/state_trackers/egl/common/egl_g3d.h
src/gallium/state_trackers/egl/kms/native_kms.c
src/gallium/state_trackers/egl/x11/native_dri2.c
src/gallium/state_trackers/egl/x11/native_ximage.c

commit fec8a1db13fac04ef56f6ece799d1f20aa3011db
Author: Marek Olšák <maraeo@gmail.com>
Date: Sat Apr 3 07:58:34 2010 +0200

util: fix assertion failures in pipe_buffer_flush_mapped_range

commit 1ff3984c2edce9927744f3cce3e7b07778990170
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 8 17:44:54 2010 +0200

docs: fix transfer_map description

commit 20bf14be8ac6438cb1afa38212e306fc06a5ed40
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Apr 8 14:39:13 2010 +0100

util: fix up several uses of pipe_map_buffer_range

This function used to return a pointer to where the start of the
actual buffer would have been, even though only the requested range is
being mapped.

In the resources change, the function was modified to use a transfer
internally, and started returning the pointer to the beginning of the
transfer, ie the mapped range.

Some users of the function were changed to reflect this new behaviour,
some were not. Since then the function has reverted to its original
behaviour, matching master.

This change restores some of the users of the map_buffer_range helper
to expect the old/original behaviour.

commit 33179a86058b68b518f40971030db337dc26fe6e
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Apr 8 14:38:54 2010 +0100

mesa/st: fix up several uses of pipe_map_buffer_range

This function used to return a pointer to where the start of the
actual buffer would have been, even though only the requested range is
being mapped.

In the resources change, the function was modified to use a transfer
internally, and started returning the pointer to the beginning of the
transfer, ie the mapped range.

Some users of the function were changed to reflect this new behaviour,
some were not. Since then the function has reverted to its original
behaviour, matching master.

This change restores some of the users of the map_buffer_range helper
to expect the old/original behaviour.

commit 3f5363d4dc9d7ad48467ae82d58d5f3d9bd10698
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Apr 7 17:26:52 2010 +0100

util: map_range and flush_range have offsets relative to start of buffer

commit 7eb1bfb97a790c73188d6b616d54fb3849e69b1e
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Apr 7 17:26:08 2010 +0100

nv50: fix compiler warning

commit d040daff0642dd791ac38e9b353dc251b03fc873
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Apr 7 17:25:58 2010 +0100

nvfx: fix compiler warning

commit 49ec01dffb8e99ab3ff8f856287db7b4df3efed6
Author: Chia-I Wu <olv@lunarg.com>
Date: Mon Apr 5 11:58:53 2010 +0800

mesa/es: Fixes for gallium-resources.

commit 47c87ada452be45766928a01b6d69da63e3a5f5e
Author: Marek Olšák <maraeo@gmail.com>
Date: Sat Apr 3 05:19:20 2010 +0200

r300g: fix transfers for textures created from winsys handles

commit 5f2701fddaef9c18d85c049311c2819c49cc1ae0
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Sat Apr 3 03:52:38 2010 +0200

nouveau: don't use the staging usage

Maybe it could make sense, but for now dynamic is enough.

None of these avoid uncached reads from GART on AGP cards.

commit 0db20fa49e008f35911007fa7ed9be1d678a2161
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Sat Apr 3 03:27:19 2010 +0200

i965: add brw_resource.c to Makefile

commit b94f3e7389cbd1b6465de3c04e8059ce73f1ea1f
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Sat Apr 3 01:48:33 2010 +0200

nouveau: fix for gallium-resources

commit a01ff99a19986e6beb7903431e60a074945b09bc
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 19:26:35 2010 +0200

gallium: fix missing includes

commit 26aeded562ce947a6deeb867fe22bf8daf7b1a1a
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 19:19:18 2010 +0200

gallium: remove video interface and related stuff

These interfaces weren't quite was needed, and building disabled for a while.
Some code actually build since some branch merge, and were now not fully
converted to gallium-resources.
See http://www.mail-archive.com/mesa3d-dev@lists.sourceforge.net/msg09619.html
for a discussion of this. Video related work is done in origin/pipe-video
branch.

commit c64285aea45997a276fb141d7badc8a04f617c7c
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 18:45:54 2010 +0200

python: fixes for resource changes

doesn't look quite ok yet, but sort of compiles.

commit 03d4d5a41f5cf158a358fd705c695e1c987a328f
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 18:34:46 2010 +0200

gallium: s/u_box_orgin_2d/u_box_origin_2d

commit 2444f023142bcaf7bd310b44794580f273254408
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Apr 1 03:26:50 2010 +0200

r300g: fix segfault when the transfers functions are used

Still broken.

commit 6f09bf4066ab651b323c131bb07978e700519805
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 00:05:12 2010 +0200

r300g: compile fixes

commit 76711ff40d2092f9ef03d452de7458c4e76d9246
Author: Roland Scheidegger <sroland@vmware.com>
Date: Thu Apr 1 00:04:47 2010 +0200

nvfx: more compile fixes

commit c5d2e90c9cc119447a447dc04a4bce4ab91fc671
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 23:18:50 2010 +0200

gallium: more mostly merge fallout fixes...

commit fbc3722696790857f4adc936190406e74dffd969
Merge: 86d9225 d97f696
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 22:09:35 2010 +0200

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/cell/ppu/cell_screen.c
src/gallium/drivers/i915/i915_buffer.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i915/i915_resource_texture.c
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/drivers/i965/brw_resource_texture.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/nvfx/nv30_fragtex.c
src/gallium/drivers/nvfx/nv40_fragtex.c
src/gallium/drivers/nvfx/nvfx_miptree.c
src/gallium/drivers/nvfx/nvfx_screen.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/svga/svga_screen_texture.c
src/gallium/state_trackers/dri/common/dri_drawable.c
src/gallium/state_trackers/dri/common/dri_screen.c
src/gallium/state_trackers/dri/common/dri_st_api.h
src/gallium/state_trackers/dri/drm/dri1.c
src/gallium/state_trackers/dri/drm/dri1.h
src/gallium/state_trackers/dri/drm/dri2.c
src/gallium/state_trackers/python/st_device.c
src/gallium/state_trackers/python/st_sample.c
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_extensions.c

commit 86d9225d19d194eebbbe95b059695697c3307d15
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 19:06:06 2010 +0200

gallium: more fixes for bind changes

commit a215ef0606347e34669a580ec8df93ede7e46399
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 31 18:48:36 2010 +0200

gallium/docs: some updates for bind changes

commit c6c7e6746cbc7af59f7972719ed76f43e8ac16fc
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 20:24:26 2010 +0200

gallium: more bind change compile fixes

commit a83fa1504b78180524a5eb454ae186741a27cdf8
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 17:37:13 2010 +0200

compile fixes

commit 30dc8afcd243d6a160571bac5f06d773e54a4196
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 16:56:28 2010 +0200

fix some merge issues

commit 30aa617fee11fe50c0a9c2f33fcd120a474f5e34
Merge: 1dde609 3a830bc
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 30 16:09:45 2010 +0200

Merge commit 'origin/gallium-buffer-usage-cleanup' into gallium-resources

Conflicts:
src/gallium/drivers/nouveau/nouveau_screen.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/winsys/drm/radeon/core/radeon_drm_buffer.c

commit 1dde609ad6c9d2dfa0a5f7167f3c5bcf023b7c4d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Wed Mar 24 02:35:00 2010 +0100

docs: some updates for pipe_resource

commit f236f9660d31b936f54b64ae07e569f8637067bd
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Wed Mar 24 01:31:28 2010 +0100

nvfx: fix for gallium-resources

It seems to work with basic applications but almost surely needs more work.

In particular, it probably shouldn't use PIPE_BUFFER_USAGE_* flags
and should use PIPE_TRANSFER_* in several places.

Also, we probably don't want the vtable indirect calls and that ought
to be replaced with something better instead.

commit 5a136ad7b63768cb9a753eff8686c44592e62325
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Wed Mar 24 01:31:19 2010 +0100

nv50: fix build in gallium-resources

Not actually tested.

Also needs next patch tee to actually build, this is just the nv50 part
split from the rest.

commit 3a830bc4a3f0f60c925b9434845a6bcad9a913c5
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 14:00:52 2010 -0700

st/egl: fix up for binding flags

commit c6a80dc32ef17bc972d4137ce7444ebed4d28ebb
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 13:52:15 2010 -0700

r300: restore 4k alignment for oqbo buffers

commit e75a8d5ea9e0ffcf67bc858e08937e10b4fc74ba
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 13:00:07 2010 -0700

gallium: bind flags

commit 1f5b509543a7f399835fd9edf27c18e1643fab7d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 19:32:21 2010 +0100

i965g: scons compile fixes

commit 2c385f8f905ec794d9119c05c6293e0b1b9b565a
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 19:20:33 2010 +0100

nouveau: drm compile fix

commit b285086ebd5132b47c340897c4622cc9fbd286cb
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 18:36:19 2010 +0100

r300g: pipe_resource compile fixes

bring back mistakenly deleted radeon_buffer.h
plus some more

commit 7810606f423ef2f51f0a14b919640c2fd2c931aa
Author: Michal Krol <michal@vmware.com>
Date: Tue Mar 23 16:21:03 2010 +0100

softpipe: Map GS constants, too.

commit 366f1176fb89d2b1978da6cfe60000b76bbc7338
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 15:51:52 2010 +0100

failover: update for pipe_resources

commit 615f44d70d293704ed821bc0b21fcfe6e363895d
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 15:51:02 2010 +0100

identity: remove double is_resource_reference assignment

commit 7008586020395905ddfff333d02b3893de369796
Author: Roland Scheidegger <sroland@vmware.com>
Date: Tue Mar 23 15:50:32 2010 +0100

trace: compile fix

commit 058c5697bda4c9cf7b49d26ee27a34586544efaa
Merge: dd7ba13 b33fd3c
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 23 06:40:39 2010 -0700

Merge commit 'origin/gallium-resources' into gallium-buffer-usage-cleanup

Conflicts:
src/gallium/state_trackers/vega/api_filters.c
src/mesa/state_tracker/st_cb_drawpixels.c

commit b33fd3ce3daf2921a895367d0ed3fd9c718a8575
Author: Michal Krol <michal@vmware.com>
Date: Mon Mar 22 21:03:26 2010 +0100

gallium: Usage parameter of get_transfer/transfer_inline_write is a bitfield.

commit 9c1162d9d656062a490a529997def3f674cc61fc
Author: Michal Krol <michal@vmware.com>
Date: Mon Mar 22 20:50:49 2010 +0100

scons: Update file lists after gallium-resources changes.

commit af9793ab9e5386b150d6b25c0d1978fdc67172e4
Author: Michal Krol <michal@vmware.com>
Date: Mon Mar 22 20:04:39 2010 +0100

gallium: Do not use `template` for formal parameter names.

commit dc2e12d714c444af9ff1acdd5a7e91408b116c99
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:41:34 2010 +0000

ws/nouveau: remove pipe_texture reference

commit b94c72329f1be85887d40d49b0586979da469d77
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:40:41 2010 +0000

ws/xlib: remove pipe_buffer reference in comment

commit 0a2af3eeae7de1d1cb433f0a2c35136b115f9920
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:39:34 2010 +0000

st/vega: clean up reference to pipe_texture

commit 437ce98daae46be5d532fbb04c7cbf4a503c1623
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:39:02 2010 +0000

st/python: begin conversion to pipe_resources, much more to do

commit 1b02e1ee3e5e87774f0c9e5f0e1898b7f8de1b16
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:29:34 2010 +0000

st/xorg: update for pipe_resources

commit eb39977fe7a1d9f0c3f4f2d4303a93c2c613cc3b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:23:51 2010 +0000

st/dri: update for pipe_resources

commit e447aeff597a4d8c0f5de25854c14c99f2cc138c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:23:36 2010 +0000

st/egl: update for pipe_resources

commit e4cc48da8fdbd7d521257a6d7cd10e6fc5aa1a65
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:08:44 2010 +0000

r300: drop use of R300 DONT SYNC flag

commit 129a83ab4d32e44ded5faea3f86ae5e1e62cddb6
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:08:17 2010 +0000

pipebuffer: use transfer flag

commit 575b35ee6b683d77095ef21c573c1de207107e79
Merge: f29ac73 9fc6c8b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 22:03:25 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/winsys/drm/radeon/core/radeon_buffer.h

commit f29ac73f3f626d5779a627b7fa6fecdb60a35aab
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 18:37:25 2010 +0000

cell: attempt to convert to pipe_resources

Can't even compile test this driver.

commit 484b1947f4af81bab60b41f21c3c23ea6f67488c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 17:25:50 2010 +0000

nvfx: restore usage of pipe_winsys

The interface that cannot be killed...

commit ac76ac6eb30f4f9aa9f5733d60358b357925953a
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 17:25:10 2010 +0000

nv50: fix warning

commit 9683f4423449fa5acf6c019c571223650473bd82
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 17:14:31 2010 +0000

util: restore u_simple_screen, nouveau still relies on it

commit 961cbcb62232689c959965384c6aa9b8eca697c1
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 16:51:54 2010 +0000

nouveau: convert nvfx and nv50 to pipe_resources

Compile tested only.

This was a deeper change than I was hoping for, due to the
layering of the pipe_texture implementation in each driver on
top of a shared pipe_buffer implementation in the shared code.

Have modified the shared code to act as a set of convenience
routines operating on nouveau_bo objects.

Each driver now uses the u_resource_vtbl technique to split the
implementation of pipe_resources between the existing miptree code
for textures and a new, minimal buffer implementation in each
driver.

Eventually these should be combined, not least because APIs are now
allowing things like binding buffer resources as textures and render
targets.

commit 18ba74016db13b23282f5033ee37b628a12ee566
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 10:02:54 2010 +0000

r300: fix compilation after merge

Also build r300 by default.

commit eb9c0175c8e4baca3fcb0b8364f83ceba9d74e0d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 09:59:49 2010 +0000

st/vega: fix up after merge

commit ea8dd1d4ae7b58c9315c3491046ef3852ddd3377
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 09:59:44 2010 +0000

aux: remove unused piperesource helpers

commit be7af29d3ad1a10409b0ea689d882cf30a4e1d62
Merge: d22c2c6 12deb9e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 21 09:54:53 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/cso_cache/cso_context.h
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/state_trackers/vega/api_filters.c
src/gallium/state_trackers/vega/image.c
src/gallium/state_trackers/vega/image.h
src/gallium/state_trackers/vega/mask.c
src/gallium/state_trackers/vega/mask.h
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/paint.h
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/renderer.h
src/gallium/state_trackers/vega/shader.c
src/gallium/state_trackers/vega/vg_context.h
src/gallium/state_trackers/vega/vg_tracker.c
src/mesa/state_tracker/st_manager.c

commit d22c2c6cb23a063e3334a165d0c5c3d73f05d234
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 20 11:48:54 2010 +0000

drm/r300: update for r300g pipe_resources conversion

Remove old files that related to pipe_buffers but weren't being
built. Hopefully this is correct.

commit f07b2c836958bee5796899123eca4ed05ac6242b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 20 11:47:03 2010 +0000

r300: convert to pipe_resources

Do a very shallow conversion - basically keeping the existing
buffer and texture code intact and using a vtbl struct
inside our resource struct to select between the two implementations.

The buffer and texture treatments could be further merged without
much effort, but try to keep the existing code working at this point.

commit feca9c3ca62daaf0d8745370106d4e3b22340c49
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 06:00:34 2010 +0000

gallium: update new merges to pipe_resource

commit 1cad983eac77a0c5333e6a3ce92b90ac87407714
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 06:00:19 2010 +0000

drm/sw: update new merges to pipe_resource

commit 191d39490ed792c569f98d42cf05891b264f71f8
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 06:00:01 2010 +0000

vg: update new merges to pipe_resource

commit b727c59bc44812ad503d9390505c92b738a5b8b0
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:59:38 2010 +0000

llvmpipe: update new merges to pipe_resource

commit 5f4b64b37fdcd70162c382b2ebbd494bef751dbd
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:59:23 2010 +0000

brw: pipe_resource fixes

commit d4aca209f531f1b65bf706ce1e5fc0375b587eb6
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:59:06 2010 +0000

util: update new merges to pipe_resource

commit cf6bef0afee10763c78509a3d17e9a6e49bcd3c8
Merge: 1997231 6de8e56
Author: Keith Whitwell <keithw@vmware.com>
Date: Thu Mar 18 05:38:50 2010 +0000

Merge commit 'origin/master' into gallium-resources

commit 1997231916144485c3c4a36f53eda39fce460272
Merge: ad88ac7 e1ee3ea
Author: Keith Whitwell <keithw@vmware.com>
Date: Wed Mar 17 08:46:38 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_blit.h
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/auxiliary/util/u_gen_mipmap.h
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_gen_mipmap.c

commit ad88ac79034a91670940276e722bdd398d5c9023
Merge: 77bc770 8cdfd12
Author: Keith Whitwell <keithw@vmware.com>
Date: Tue Mar 16 09:13:07 2010 +0000

Merge branch 'gallium-sampler-view' into gallium-resources

Conflicts:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/softpipe/sp_texture.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_framebuffer.c
src/mesa/state_tracker/st_texture.c

commit 77bc770c991ea025c82eaa4e0e2390efd825d96d
Author: Keith Whitwell <keithw@vmware.com>
Date: Mon Mar 15 22:21:48 2010 +0000

util: missing file

commit f83c91db8ae63a3c3a34ff21492427a5663fb760
Merge: c1d4774 42910eb
Author: Keith Whitwell <keithw@vmware.com>
Date: Mon Mar 15 09:48:58 2010 +0000

Merge commit 'origin/gallium-sampler-view' into gallium-resources

Conflicts:
src/gallium/drivers/nv40/nv40_transfer.c
src/gallium/drivers/nvfx/nvfx_transfer.c
src/gallium/drivers/trace/tr_drm.c

commit dd7ba1378fc50710667724d30d6d4cf1125ad61e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 23:54:36 2010 +0000

gallium: start a cleanup of buffer_usage

Remove fairly meaningless CPU/GPU READ/WRITE flags and
replace with proper usages.

commit c1d4774187189f4af8ff421b210824f3d53ceefb
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 23:05:45 2010 +0000

llvmpipe: don't FREE userbuffer data

commit 9bfa07afe179f8060e7beefb754a29c4d9c6e349
Merge: 65757a1 08cddfe
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:54:51 2010 +0000

Merge commit 'origin/master' into gallium-resources

Conflicts:
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_scene.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/llvmpipe/lp_texture.h
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/svga/svga_screen_texture.c

commit 65757a143f8e3fcd7afbc1ff92db44a823edf46c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:41:17 2010 +0000

svga: build fixes

commit 2f5435220501d4b3050cab2bb1dce6174cd13ff6
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:39:25 2010 +0000

gallivm: build fix

commit 42642ec0984107d82b740711f2debbf38457a06e
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:38:33 2010 +0000

llvmpipe: convert to pipe_resources

commit 7bbcb21e20cb545ef8dd5fc61d67ed931c69e813
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 22:19:30 2010 +0000

gallivm: convert to pipe_resources

commit 88ae0d04610ca52649b42e32141a52af6d5a739b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 21:01:22 2010 +0000

configs: build svga

commit 0e112bc69828e65085ebfaef895ecd78fe53f1c4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 21:01:17 2010 +0000

gallium: restore PIPE_BUFFER_USAGE_CUSTOM

commit 102aca688b95c976b7178b84092fba7d041ff9d2
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 21:00:41 2010 +0000

util: more transfer helpers

commit a79f6a4a0836fc64c07f9aeec21d914474fe3649
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 20:59:36 2010 +0000

svga: convert to use pipe_resrource

As with others so far, a fairly shallow conversion.

commit 087fb54492fa5e3baf040c5efbf7dacd98a8849b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:38:08 2010 +0000

brw: fix function name

commit cfc9dd707d16e06fd23b6926da3a6e2269f31dc8
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:19:06 2010 +0000

gallium: enable brw compile

commit 8a5b86d76bdd3c7de63322423f59940a4dc2ee25
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:18:50 2010 +0000

brw: compiles with pipe_resource

commit 563ca458b548c41ca4dca559354c16ca1a80d009
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 18:18:42 2010 +0000

i915: hook up userbuffer create

commit b5095b48247b6020e36cc942ac145c3fccbe9a19
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:20:51 2010 +0000

i915: use helpers for is_resource_referenced

commit d5392bdc6d70002acf9c5bac0fde14ba405c4d84
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:20:38 2010 +0000

util: helpers for is_resource_referenced

commit 2f3492a5aefbb2e745f6700d8e910ebb5cbb98cf
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:08:50 2010 +0000

i915: remove buffer.c again

commit 1373a35b65fcc25ec6cdfea2703bbb3417de2c6d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 17:08:34 2010 +0000

i915: add new files to scons

commit 0251612d70e57fe38e10e75915b394631d224f2c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 16:38:29 2010 +0000

i915: compiling with pipe_resources

commit 9a0235864252929a8eedd44dbd2fe30fe54c531d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 13:51:16 2010 +0000

gallium: remove inline_read transfer

commit a6ba315e25793e0c228d3a4ae2f8201634dc9ff0
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 13:50:32 2010 +0000

trace: get running

Some dumping will be incorrect or disabled, but it runs without
crashing

commit 2133f1d90aa919662a8420a0cf3b4557e6ec1afd
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 13:49:42 2010 +0000

gallium: remove the inline_read transfer

There aren't enough users of this to justify it.

commit bccaf1fa30881f6b4fb189a9b74fc7af79c3b481
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:30:37 2010 +0000

identity: hook up inline transfer operations

commit e4c152a344f2f53c842b810724a2ae7cb4554f58
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:21:54 2010 +0000

gallium: build trace and identity

commit 0b5a311db78852fa9fd021e17b5968a1e0436b49
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:21:36 2010 +0000

gallium: add more of the transfer state to pipe_transfer

Not really sure if recording all the arguments to the
create_{transfer,texture,surface,etc} functions in the result of those
calls is a great idea, but it seems we're fairly dependent on it
throughout the code.

commit a23985c26eafe76b0a7dacc892e50cb589f211fe
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:19:46 2010 +0000

identity: compiles with pipe_resources

commit d0d630944304c208f6dade6ef8836763ee2bc7b4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 12:13:02 2010 +0000

trace: compiles with pipe_resources

commit a4451ea459cc8bfc915fe6aed2891b90854b6c9d
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:39:50 2010 +0000

softpipe: give userbuffers a format other than NONE

Most mesa demos working

commit 32bb1bd4ba29884a4ecfa11c8441d33dfceabcef
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:39:21 2010 +0000

util: correct argument order in pipe_buffer_map

commit 7e2696c06445282feb781047277b260308760a33
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:32:55 2010 +0000

softpipe: transfer flush

commit a0543b13c042e3c1142522d9d136f16fd4cabf78
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:32:13 2010 +0000

util: noop implementation of transfer_flush_region

commit ce418533be752dbeb164e7ff82a99483048e482b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:26:07 2010 +0000

gallium: softpipe runs gears with pipe_resources

commit bfda4f2eb34498e4b7f3c608d30fccff6bb9651b
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 11:25:48 2010 +0000

util: get clip_tile working again

commit f5ef219c3bed62b6a0da842e675fae16268e0fbe
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:43:20 2010 +0000

softpipe: use u_transfer helpers

commit 072957aab25affecf0702e925310e46c694a5ee4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:42:46 2010 +0000

util: helpers for inline transfers

commit 9c45561fb0d7a52400093bcb2ce5f727fafd7777
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:42:25 2010 +0000

util: fix typo calculating transfer box

commit f3e98fd47f36804d019a684d49ff230df3ab0cf5
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 09:25:46 2010 +0000

st/vega: convert to pipe_resource

commit d1b7b00afc944f6499c83d676c7642115d62a62c
Author: Keith Whitwell <keithw@vmware.com>
Date: Sun Mar 14 08:37:56 2010 +0000

gallium: begin converting drivers to pipe_resource

Work in progress...

commit 51c25117f5d6da1926a2be5ecc66677952a8abf0
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 20:16:27 2010 +0000

gallium: work in progress on layering resources on top of old textures

Helper code in an aux module to avoid rewriting all the drivers.

commit fb6764d3ce95c55aa78af2f1c8cbb17b79ce1ba2
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 19:19:09 2010 +0000

heaps of wip

commit ee6b3bc730fcdaf8da3646d62f04578ec06d36a1
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 16:38:02 2010 +0000

wip2

commit 1830880212445189fe267d615075239ed17c7cc0
Merge: 90b4045 47bfbd4
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 15:14:03 2010 +0000

Merge branch 'gallium-sampler-view' into gallium-resources

Conflicts:
src/gallium/include/pipe/p_context.h
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_texture.h

commit 90b4045fbc0a093fcd04efba7e045ec259c490b8
Author: Keith Whitwell <keithw@vmware.com>
Date: Sat Mar 13 14:52:43 2010 +0000

wip
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a1f85cf689b6f9ccf6b7310485460f84c8d78cad 05-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: typecast using the r300_texture function
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a955f86b31304a1a0f35faa0e0861e920354e23b 05-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: add fallback for back stencil reference value and masks for r3xx-r4xx

This splits rendering into two passes when front and back stencil
reference value, value mask, or write mask don't match.

The advantages of doing it in the driver instead of in st are:
* SWTCL is executed just once and the resulting vertex buffer is reused
in the second pass.
* Lower driver overhead due to the fallback being very close to
the actual draw emission with minimum state change.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
b71bfc4400e1d7c15a2bebbbd3b26a8770fbf546 05-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: simplify accessing screen from context
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d2686cdb2354b7cfe0e4eac3c5afab40cb947e0f 05-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: raise the number of texture units to 16 for all supported chipsets

As per Radeon 9700 Opengl Programming and Optimization Guide [1], there are
16 texture units even on the first r300 chipsets. If you think I am wrong,
feel free to propose a patch.

[1] Here's PDF: http://people.freedesktop.org/~mareko/
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4e949271c25ccc5a06fbbbe912b0b43b75d1d169 04-Apr-2010 Marek Olšák <maraeo@gmail.com> r300g: is_npot -> uses_pitch
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
21961f6e9614f234be704da93032cb4ec197eef4 02-Apr-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Expound on dithering comment.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f6c7b911653fb1508256c63518ef0bd15d68186e 02-Apr-2010 Dave Airlie <airlied@redhat.com> r300g: make dithering work like fglrx.

From fglrx traces the dithering is never enabled.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ba43b74967d91d592f085943b60c522b88916495 30-Mar-2010 Vinson Lee <vlee@vmware.com> r300g: Remove unused variable.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
587c5ef01fad962bcfb087232d0925a8eec86953 30-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Bind constantbuf to Draw immediately, don't wait for render.

Doesn't hurt, and reduces code duplication.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4b8d3480764daf45cbbc03d76cd8b7c81937f532 27-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: print errors even on non-debug builds

We really need to get these into bug reports.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c8844c5549dec7e9c47ab49d6e229980f62da74d 27-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Make SWTCL clear work again.

Kind of surprised that this was as little as it took. Worrying.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
38c7a01b6c220ad04c5754602673ad3cf36ad508 26-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> Revert "r300g: add generating texture coordinates for point sprites (WIP)"

This reverts commit cba6430524198a1bdcdeada03cbe946a454f3935.

Breaks celestia with a hardlock. :T

We really need to sit down and study texture stuffing further.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8bf9842fac00369b5cd3a82fb4d87db0e31848b8 21-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: fix scons build
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
33d2349119ada410dbfbaa667fc7aef8b60d1a6f 21-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: cleanup tiling flags propagation
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
04de5f4b8bf68a4594ed7fef8348bcf068701ac8 20-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: split the vertex buffer alignment validation
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
951d89ae3a01b2d7f482b95da0a6d647c6855a68 20-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: skip null vertex buffers
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4711aa089ec7af70bb9118ad8d7830e475805297 21-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Correctly hax max_index on pipe_vertex_buffers.

Still not happy with this, but at least things seem to work.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
afae0891949b72a2ede2a3b6a01d4d6bcf4ceae0 19-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: fix breakage after the gallium-sampler-view merge
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
cba6430524198a1bdcdeada03cbe946a454f3935 24-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: add generating texture coordinates for point sprites (WIP)
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
506130fff5685742d280bde8800be036c8e8ebfa 15-Mar-2010 Keith Whitwell <keithw@vmware.com> r300g: fix up after merge
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
42910ebe7b9748c0ecb6a597bae3e7d43c7e170f 15-Mar-2010 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/master' into gallium-sampler-view

Conflicts:
src/gallium/drivers/nv30/nv30_context.h
src/gallium/drivers/nv30/nv30_state.c
src/gallium/drivers/nv40/nv40_context.h
src/gallium/drivers/nv40/nv40_state.c
src/gallium/drivers/r300/r300_emit.c
68e58a96e80865878e6881dc4d34fcc3ec24eb19 12-Feb-2010 Dave Airlie <airlied@redhat.com> r300g: rebuild screen/winsys interface

This creates a cleaner winsys and drop the simple screen stuff.

It makes r300g use pb_bufmgr structs.

It also tries to avoid overheads from mapping too often.

v5: clean warnings

v6: break out of cache check on first buffer - since most likely
the first busy one implies all after it are busy.

v7: cleanup a bit

v8-merged: drop cman for now to just get all the interface changes in first.
rework to changes that happened upstream

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3996e493693d5aa048fed1c2fd6db4027cb47df4 13-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: add high quality anisotropic filtering for R5xx (disabled by default)

Oh look, an undocumented feature. It's a nice tool for benchmarking
texturing.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d5749fb6fc9b7bb3c8a8b1632eee6db28678b3ba 13-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: fix anisotropic filtering, fix macrotiling

Two bug fixes at the same time. :)
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
47bfbd452c93e6a8db013fb90d9f42210cf24889 13-Mar-2010 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/master' into gallium-sampler-view

Conflicts:
src/gallium/auxiliary/util/u_tile.c
src/gallium/auxiliary/util/u_tile.h
src/gallium/drivers/identity/id_context.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_setup.h
src/gallium/drivers/softpipe/sp_tex_tile_cache.c
src/gallium/include/pipe/p_context.h
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
e42b2f768509b6984c7186805c6a8afdaebf3a06 12-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Properly clamp index limits.

Make the kernel even less likely to barf on us.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
530b9910c2fd25344e6d28b6d9aa0eaad31618e7 11-Mar-2010 Michal Krol <michal@vmware.com> gallium: Check for OOM condition when creating a sampler view.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3ce4375912c8ea488460e593e07c5bb15b92dca9 10-Mar-2010 Michal Krol <michal@vmware.com> Merge branch 'master' into gallium-sampler-view

Conflicts:
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/SConscript
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/util/u_blitter.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i965/brw_context.h
src/gallium/drivers/llvmpipe/lp_context.h
src/gallium/drivers/nv50/nv50_context.h
src/gallium/drivers/nv50/nv50_state_validate.c
src/gallium/drivers/nv50/nv50_tex.c
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_sampler.c
141c7cb0d6078b3a2832c4be03ddcf25e35e596b 09-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Precalculate and CSO-bind PSC state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
685340a53e1dcb2a888e634ee71ba24356befe69 09-Mar-2010 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-vertexelementcso'

Conflicts:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i965/brw_draw_upload.c
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state_derived.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_clear.c
9860f652e271d03672ec3e5f0e379170953a1e56 08-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: fix updating the tiling flags for the framebuffer state
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6abe6145fb3b642fc2ae1d6ad2cc9de045efe0cb 08-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: remove unnecessary state emissions and clean up
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
690ded32cdda4363c30aca32ef94383ba356a3c5 07-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: disable emitting the HWTCL-related state when SWTCL is in use

Now SWTCL renders at least "something", we're close...
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4f541db80c5ffff8932679a389a6043105f0b1be 07-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: share the VS-output-mapping state with SWTCL

And associated cleanups.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
09653d65e9650c3c04b3e8160b8f2ad7198fc122 06-Mar-2010 Marek Olšák <maraeo@gmail.com> r300g: minor cleanups after the no-rhw merge
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4cb7642ff3ba390e2918d71220625a837bf8a7b9 03-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Use a macro to consolidate general state handling.

My God, I've reinvented R300_STATECHANGE. Forgive me. :C
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4240987cecdaaaeb2d6188f7c83ff4cb8e670c59 03-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Make velem CSO actually work.

glxgears runs again.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
2998cad9ce0c2c60078a28e6a0f3f3bbda3a6535 02-Mar-2010 José Fonseca <jfonseca@vmware.com> Merge branch 'gallium-format-cleanup'
4ca70c489baed3e23dbf5e5e5794385113e22252 02-Mar-2010 Michal Krol <michal@vmware.com> Merge branch 'gallium-no-rhw-position'

Conflicts:
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_state_derived.c
b5cfa6f1966557106a7033b2c80769d64c72ce4c 01-Mar-2010 José Fonseca <jfonseca@vmware.com> r300: Rename pipe formats.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
e9441e1f88cc07365f4d7d9149ccefe128809645 01-Mar-2010 Roland Scheidegger <sroland@vmware.com> r300g: adapt to new vertex element cso
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
b42455c4f48076eec34e383d5b9cc4670f2d048f 01-Mar-2010 Michal Krol <michal@vmware.com> r300: Save viewport and clip states before invoking blitter.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d2ac3d5e79bdf5a32a2dca135403d963ac6c83e4 28-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: atomize texture and sampler states
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
942762cd973af0df75040de21d3321cd19829e70 28-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: decouple vertex stream setup (PSC) and VS output mapping (VAP_OUT)

Formerly known as vertex_format_state. These two are completely
unrelated when using HWTCL and decoupling them makes the design
less SWTCL-centric.

When bypass_vs_clip_and_viewport gets removed, the PSC setup will
no longer be a derived state.

This change shouldn't make unbreaking SWTCL harder.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4ed97f0a73db37f6105b6282d92646c3f66c2645 27-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: use the atom size directly during emission
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
279715e76e5385afaad2834191e8578cf3a5d233 27-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: atomize invalidation of texture caches
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fe6d3b9222ce184daab61ebb390a6af0b9889abf 27-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: atomize PVS flush

The first non-state atom. It's better and cleaner to have it.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
74f94e8fdfe035fa68acdc19e6b0afc2957a4264 27-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: move the emission of GA_POINT_MINMAX into emit_fb_state

The only practical limits are the ones derived from the currently-set
framebuffer state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a3d4d0dec2882e352dc9ddcc1572e36620a4d13e 27-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: put the emission of R300_US_OUT_FMT_UNUSED back

It wasn't such a good idea to remove it. :/
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f129a7dd686cb3d824253bffab8c8b32b8ef8b69 27-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: mark rasterizer_state as dirty only when it's not NULL
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
93da1522098145f0e7ff9d4188050728b075b4a1 27-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: always emit the correct max vertex index to avoid DRM errors

Fixing bizarre reports that a vertex buffer is not large enough.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
686f69bd13fd2aebaa40edeb7e25e4a49b12a2bd 25-Feb-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Atomize vertex shader.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
63cb6f59eac91ba34cf80ff3736568e40b094fe1 22-Feb-2010 Michal Krol <michal@vmware.com> gallium: Remove bypass_vs_clip_and_viewport from rasteriser state.

Needs testing.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
b14548ea32000459f4f0c4b49f3fa11d1ee9c003 22-Feb-2010 Dave Airlie <airlied@redhat.com> Revert "r300g: rebuild winsys/pipe buffer handling and add buffer map"

This reverts commit fff5be8e7b4557c221f2425dcafc2e7cbbba76ba.

Probably went too soon with this, dileX reported OA not working for him
it works here fine, but the optimisations I wanted aren't working properly
yet so I'll fix that now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fff5be8e7b4557c221f2425dcafc2e7cbbba76ba 12-Feb-2010 Dave Airlie <airlied@redhat.com> r300g: rebuild winsys/pipe buffer handling and add buffer map

This creates a cleaner winsys and drop the simple screen stuff.

It makes r300g use pb_bufmgr structs and adds usage of the cached
bufmgr for vertex/index buffers.

It also avoids mapping too often.

I'm not 100% sure this is perfect but it won't find its own bugs.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d3d3345cb840bdfb4a0040ca86e8a588e9b68051 15-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: fix the size of constant buffers

4 more piglit tests pass, sweet.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
7344e20ce4a333bfd8ab142cfdf98098e16b001d 12-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: set the correct tiling flags for renderbuffers

MACRO_SWITCH is applied to samplers but not renderbuffers. This commit
fixes incorrect rendering to large and small mipmaps where the large ones
are macrotiled and the small ones are not and both are emitted
in the same CS.

Note that this is still disabled by default (rework of texture transfers
is next).
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
67049b59fdc3fb8dff6a04cb4929f48c28cd88ca 12-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: cleanup the emission of framebuffer state

Some emits are not needed anymore.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6602889d82d1402338f5d23e37a9f46db99e86c6 12-Feb-2010 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-dynamicstencilref'
ebe12d50064370e4ddec21a1e087b24295940319 12-Feb-2010 Roland Scheidegger <sroland@vmware.com> gallium: make max_anisotropy a unsigned bitfield member

saves us a dword in sampler state, hw can't do non-integer aniso degree anyway.
To allow aniso 1x (which seems of dubious value but some hardware (radeons)
have such a mode, and even d3d allows specifiying it) redefine anisotropic
filtering as disabled only if max_anistropy is 0.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
bf4b0773c570017c1c3ec80da769bf5c39a685b2 11-Feb-2010 Roland Scheidegger <sroland@vmware.com> r300g: adapt to stencil ref changes
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
412ffb7a3ab8c0174aa921a4a10af3eaa03648da 10-Feb-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Fix typo.

Thanks to Uros Bizjak for catching it.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
67b60b99348f50ead92e617a5085422da9d8c022 09-Feb-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Correct colorbuffer measurements.

Also clarify changes from pointminmax.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
653a83445f94620673f747a4ace6847a2c7fdb4d 09-Feb-2010 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-nopointsizeminmax'

Conflicts:
src/gallium/drivers/nv10/nv10_state.c
src/gallium/drivers/nv20/nv20_state.c
src/gallium/drivers/nv50/nv50_program.c
5201e948010a63a8df1c67f7d212ab7ff59dbdf1 06-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: cleanup XXXs in the DSA state
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
2f5fcce933dd9beb66d2da4c1ca979ccde57483e 05-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: make a local copy of framebuffer state

The previous more direct approach was simply incorrect.

piglit/levelclamp passes again.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c8b34616b345d7a64d39e0ea3d4f4006af0b9740 05-Feb-2010 Marek Olšák <maraeo@gmail.com> r300g: fix color channel masks

glean/maskedClear passes again.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
b6ac2403aca240c72c8622ddbc3a4e123d5aa37f 30-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Independent blend enables only work on r500.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
00873227292df458b28249d7c3736d633e619dab 28-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Clean up blend masks, change caps.

progs/tests/drawbuffers should work, except I can't test it. GG new
shader parser. GG.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
9b346f83a7b672e913a7bb6a089d5dbd7fbdce06 28-Jan-2010 Roland Scheidegger <sroland@vmware.com> Merge commit 'origin/perrtblend'

Conflicts:
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/include/pipe/p_defines.h
b9ae570bab5d0fefef93a9f6808603971304a74d 28-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Atomize framebuffers.

There might be some optimizations possible here...
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
978568c647844693f602364bd9e1041d1cecea4f 28-Jan-2010 Vinson Lee <vlee@vmware.com> r300g: Remove unnecessary headers.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fc20efe8e511bb9ec15c3d70e28b348ddaa4ad37 27-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Turn the RS block into an atom.

At least one extraneous dirty was eliminated, as well as the chance for
avoiding dirty on shader change.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
60aa7f1f8042a9291339a3b337a2f1adacf12841 27-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Make vertex_format into an atom.

Some delicious hax here.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
5fe71949d9e3790ce38ab616aee29079c6b67721 25-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Finish and enable immediate mode.

Based on Marek's immd-mode patch.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
72778a9d254f6c9c63d86413936ee7f3e5a6e56e 25-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> Revert "r300g,radeong: finish and enable the immediate mode"

This reverts commit 112239e9a66a155d36fe2ad0ab130e6f26eff298.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d241964e47ac5576e754d6e6ae19fece8bf8752c 25-Jan-2010 Roland Scheidegger <sroland@vmware.com> r300g: adapt to blend changes
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
112239e9a66a155d36fe2ad0ab130e6f26eff298 18-Jan-2010 Marek Olšák <maraeo@gmail.com> r300g,radeong: finish and enable the immediate mode

Nearly 100% performance increase in glxgears.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
673ae6266ebf66145bf2bd7d37965f3fe60371d5 17-Jan-2010 Marek Olšák <maraeo@gmail.com> r300g: fix polygon offset

As per classic r300.

Not sure why glean/polygonOffset still fails, but we do emit the same register
values as in classic.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
eedebfa5793844728f1d41a6b0a899825eba176a 17-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Respect fill modes in indices fallback.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
5e5d0ad08167c178fcda005862e3dbead3e8c482 15-Jan-2010 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-noconstbuf'

Conflicts:
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/mesa/state_tracker/st_draw_feedback.c
aeb34b248903f98559209db4f095d1096ecb580a 13-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Account for CS space used per atom.

Oh yeah, those atoms are startin' to pay off. The main obstacle now
for OA playability is the absurdly low default mouse sensitivity, IMO.
Not totally smooth yet, but getting there.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f3c4f2ef623942d65d1e8c38110bf059e286b36a 12-Jan-2010 Marek Olšák <maraeo@gmail.com> r300g: only emit scissor when needed

Reverting some bits from ce1c493ff8fad4b62e2b66f06636ac6560a6e0ad.

Given the latest fixes, it's not needed to always emit scissor, really.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a407636efb6c32cee81b9a1525dbc804aacd957b 12-Jan-2010 Roland Scheidegger <sroland@vmware.com> gallium: remove point_size_min and point_size_max from rasterizer state

The state tracker is responsible for clamping to any graphics API enforced
size min/max limits for both the static point_size setting as well as per
vertex point size (in the vertex shader).
Note that mesa state tracker didn't actually use these values.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ce1c493ff8fad4b62e2b66f06636ac6560a6e0ad 12-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Always emit scissors.

Save some code, improve FPS, and fix piglit tests. Everybody wins.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
22d615a9c4b95c528d6604eccb71cf6fe5193d5a 12-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Avoid segfault on binding null RS state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
70c8d2a29724d018bacc4a68ddc61db08faea00d 11-Jan-2010 Roland Scheidegger <sroland@vmware.com> gallium: remove const qualifier from pipe_buffer argument in set_constant_buffer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
bfcafbe15dc98d747ba4c63305c9cf2c4cdbe573 11-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Don't bother testing for empty scissors.

If somebody goes through that much effort, they probably intended it.
So humor them. :3
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1e9ffb63401b7bdaf05c53e07b588128566b437d 11-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Atomize scissors.

Argfl. Some of this code is so questionable.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8ca491386d0fb9e675e7dfbdd05bc09af74d75d3 11-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Move TCL bypass switch to main context.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
47f59cfc8eba6574c9ca0ae8799e8fbd9b393fb7 11-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Atomize viewport.

Goddammit, some of these hax are really annoying.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
46fafdd455bc1f3ee05c076b3c8c541ecd4132dc 10-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Atomize rasterizer.

I want to stab things now.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
07ea7e6c80ef2bcb69ab12af69d27f7e118bc15a 10-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Atomize DSA.

Also a bit of ztop.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
249374b85346663417fc09e4c1ad3c6fb908067b 10-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Atomize UCP.

Meh.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
9d3db601c782805113e60ee7f6976184f2786427 10-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Atomize blend color.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d496399156a7d9a683999e41f126232f89375f2b 10-Jan-2010 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Start using atoms.

No benefits yet.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1a4f242be60237fb1f1acf346b1e641167bc6cee 24-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: if no DS buffer is set, disable reading from and writing to it

It fixes another "Bad CS" issue.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
26f67a272b6668258fe3552a675414502e077dd9 24-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: disable the rasterization of WPOS if it's unused by the FS
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
bf60eb3fec844a7c3793aba0c70da56b74a17344 24-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: add WPOS
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
7c902b43d84f5508764e64d95f7359897a1aad0a 21-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: optimize blending by conditionally disabling reads from the colorbuffer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6b9b3213c545644d155be54fd633e8b630a22465 20-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: optimize blending by discarding pixels that don't change the colorbuffer

Let's get some performance out of the blender.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
717c28055a9093e4fea37450d6db787e5b61e254 20-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: fix blending when SRC_ALPHA_SATURATE is used
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f02347374819a9b145a3e26c625709aea0c6f61b 06-Jan-2010 Luca Barbieri <luca@luca-barbieri.com> gallium: remove PIPE_TEX_FILTER_ANISO

This patch removes PIPE_TEX_FILTER_ANISO.

Anisotropic filtering is enabled if and only if max_anisotropy > 1.0.
Values between 0.0 and 1.0, inclusive, of max_anisotropy are to be
considered equivalent, and meaning to turn off anisotropic filtering.

This approach has the small drawback of eliminating the possibility of
enabling anisotropic filter on either minification or magnification
separately, which Radeon hardware seems to support, is currently
support by Gallium but not exposed to OpenGL. If this is actually
useful it could be handled by splitting max_anisotropy in two values
and adding an appropriate OpenGL extension.

NOTE: some fiddling & reformatting by keithw to get this patch to
apply. Hopefully nothing broken in the process.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1278507e3bf2e83c7027820a0d313de267a440ff 24-Dec-2009 Roland Scheidegger <sroland@vmware.com> gallium: adapt drivers to pipe_constant_buffer removal
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
35e8283c69d80debb44b05ea79dc5f67303a7432 22-Dec-2009 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-edgeflags'

Conflicts:
src/mesa/state_tracker/st_draw.c
6ba83cd63f84a4d74dd679d62662d59533fd1bdb 16-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: add texture compare modes
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f13a904c34cf7ac5aae3d50a1421259895fc9a08 19-Dec-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Respect provoking vertex for trifans.

Fixes part of piglit's clipFlat test; next up is to get quads right.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
429f0e3b37e33a33289f8488369474b20bfd5247 19-Dec-2009 Roland Scheidegger <sroland@vmware.com> gallium: fix up drivers for edgeflag changes

several drivers which chose to ignore edgeflags might require some more work,
while edgeflags never worked there they might now crash.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a6d701d1c6ed8e0a649d62104aeded8fb25c66d8 14-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: if no colorbuffers are set, disable blending and set the color mask to 0

This seems to be the only way to disable the first colorbuffer.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
de0befc4b2e3061f865a5b39295d64a8f003e9e8 14-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: remove unnecessary flush in set_sampler_textures
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3710a6f6cc84f46b6e1fb6a6a9f9eb6e7047c4e0 10-Dec-2009 michal <michal@transistor.(none)> r300: Fix after sampler view changes.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c6b450033d7ec2a415b1d761da1d94588358c94b 09-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: fix routing of vertex streams if TCL is bypassed

Generating mipmaps finally works, among other things. Yay!
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4ebc54795dc93f7eee200312abfa2da1b49506e3 08-Dec-2009 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-strict-aliasing'
ee1720b99dfb5964962f2346406a4e3e88374a68 08-Dec-2009 Roland Scheidegger <sroland@vmware.com> gallium: fix more potential strict aliasing issues

In particular, gcc man page warns that
union a_union {
int i;
double d;
};

int f() {
double d = 3.0;
return ((union a_union *) &d)->i;
}

"might" not be ok (why not?), even though it doesn't seem to generate
any warnings. Hence don't use this and do the extra step to actually use
assignment to get the values in/out of the union.
This changes parts of 3456f9149b3009fcfce80054759d05883d3c4ee5.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3456f9149b3009fcfce80054759d05883d3c4ee5 07-Dec-2009 Roland Scheidegger <sroland@vmware.com> gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safe

use pointer to union instead of void pointer.
gcc complained a lot, depending what the pointer originally actually was.
Looks like it's in fact maybe legal to cast for instance uint pointers to
union pointers as long as union contains a uint type, hence use this with some
callers, other just use union util_color in the first place.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
07487643515edb731c6abc3e931c329a89dd9293 05-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: don't render if everything is culled by scissoring

Otherwise a CS is refused by kernel 2.6.31 (and maybe all later
versions, not sure).
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
e1380cae885df37d4a211d0271f59487d9f2db78 05-Dec-2009 Marek Olšák <maraeo@gmail.com> r300g: remove redundant code and clean up
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
56a4342a0493ad1d502d4791ab941ef171d36e60 05-Dec-2009 Michel Dänzer <daenzer@vmware.com> r300g: Need to emit a hardware scissor rectangle even if scissor is disabled.

Just make it cover the whole framebuffer in that case. Otherwise the kernel CS
checker may complain, e.g. running progs/demos/gearbox. That runs fast now
here, but doesn't look right yet.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
08383af4c749566dcb58db94d7b72ee02e4cab11 02-Dec-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: No vertex textures here.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c1bcedc4ce48031c9e5d2a2430d27c7a9aaa8b37 01-Dec-2009 Michal Krol <michal@vmware.com> r300: Update for renamed sampler/texture state setters.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
2b07b640619ac68344276ba0557ea46b2cbc3f26 22-Nov-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Build fix.

Oops.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4e1236e60267d036a1a604412bd7efd7a249a588 15-Nov-2009 Marek Olšák <maraeo@gmail.com> r300g: fix updating a vertex format

We must update PSC when we change the vertex format, e.g. vertex colors
from RGBA to BGRA.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
b7078a88119e248b0196f7446abe029c22f1ee28 14-Nov-2009 Marek Olšák <maraeo@gmail.com> r300g: add texture lod clamping

These now work:
piglit/lodclamp
piglit/levelclamp
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1c181a7eff96816b5d72ea5daab5818eef0ebc60 15-Nov-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Begin separating HW TCL and SW TCL state and setup.

This patch removes draw_context entirely from the HW TCL path and cleans up
a few other things along the way. Hopefully, nothing got broken.

Thanks to Marek Olšák for testing, review, and pointing out my bugs. :3
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f4041b37e2d305cff0a97eb836250e9f8b1840a8 14-Nov-2009 Marek Olšák <maraeo@gmail.com> r300g: fix rectangle textures on r3xx

Adapted from Maciej Cencora's patch.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
11d9edf4c9c75d5a41fb0a1757441ad315330bea 08-Nov-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Unify context names for counts.

From the SW TCL fixups.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3445f476977ae403cef9ca15661fa0f96ff50eca 25-Oct-2009 Maciej Cencora <m.cencora@gmail.com> r300g: VBOs WIP
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d8592d1724d8c8fd0b36eb21f4007b52f809e062 01-Nov-2009 Maciej Cencora <maciej@osiris.(none)> r300g: add missing flush
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c2e47191d72e16aaa1fae4f47bbed7639c2ff201 04-Nov-2009 Marek Olšák <maraeo@gmail.com> r300g: add polygon mode

Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ad96c0d851f6c3696fa6ae0c1f6ad56e849bc739 03-Nov-2009 Marek Olšák <maraeo@gmail.com> r300g: add color channel masking

Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1f630fa0167ed799556a764178772c096a3ddeba 01-Nov-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Miscellania. Avoid draw segfaults, s/true/TRUE/, etc.

Cleared out my git stash.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
2db46af8758bf77a2748460f617d0ead5b08a454 21-Oct-2009 Maciej Cencora <m.cencora@gmail.com> r300g: split constant buffer and shader emittion
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a8f85dceb5e721437ba30ec540cd0bf8ee454325 31-Oct-2009 Marek Olšák <maraeo@gmail.com> r300g: fix reading from the destination buffer in blending
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
11180b44717943d767b64f0b658f31b6c2594aa4 30-Oct-2009 Marek Olšák <maraeo@gmail.com> r300g: remove unnecessary assertions

Also, correct typos in comments.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
bcfde429139476c2d04baddaf671651cfc860145 28-Oct-2009 Marek Olšák <maraeo@gmail.com> r300g: fix emitting the stencil-ref and alpha-ref values

Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>

DSA really needs its head examined someday. ~ C.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
0e44884aada4e4bd6384245d9ae065da5aca7f3d 28-Oct-2009 Marek Olšák <maraeo@gmail.com> r300g: fix blending and do some optimizations

Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3b8dad47f816667aa4166d6e27361d274fc2cf4d 21-Oct-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: No debug in r300_state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6a448a525baf81173f92ee8c3074b98baa54397b 21-Oct-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Cleanup header includes.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
16a06fea73b1e6e8857f7568762bfc56dcfe2940 19-Oct-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Fix up a bunch of warnings.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fd63f89e95342d7d5921d6369346e356b505b584 14-Oct-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Move ztop to derived state.

Need to get it into its own atom instead of piggybacking on DSA.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ce5cba040c34a1a70186c29a5055e9be3c85a54a 14-Oct-2009 Dave Airlie <airlied@redhat.com> r300g: add one more ZTOP disable bit.

Still missing the frag uses kill support, hopefully nha can point that out.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c1bee7bdea470b6b5dcebef9aacc8fe4feca687c 14-Oct-2009 Dave Airlie <airlied@redhat.com> r300g: fixup arb occulsion query support.

1: add rv530 support
- num z pipes cap
- add proper start/finish query options for rv530

2: convert to use linked list properly.

3: add flushing required check.

4: initial Z top disabling support.

TODO:
make it actually work on my rv530.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3611d01a44d5d3cd2c132e685836b1ea9c8b9922 11-Oct-2009 Dave Airlie <airlied@redhat.com> r300g: fix blending default state + alpha separate.

this makes the default state same as r300
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1ddb22675c123fc955ad3ab46bba45d3330d2ec4 06-Sep-2009 Nicolai Hähnle <nhaehnle@gmail.com> r300g: Fix a number of warnings

Seriously guys....
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
80ea03bd174ab7824c754faa9944d7736bf513f2 05-Sep-2009 Cooper Yuan <cooperyuan@gmail.com> r300g: update rs_block state after changing rasterizer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8f990f928b1d6cb395ea4f3d4c1d7e3a670f1ad6 05-Sep-2009 Cooper Yuan <cooperyuan@gmail.com> r300g: need to validate scissor and viewport state if bind new rasterizer
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ba87cbf2be04d9d14d7e0b6d40508edadd4705e9 27-Aug-2009 Cooper Yuan <cooperyuan@gmail.com> r300g: Correct scissor setting, subtract 1 from window's width and height
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
e327845e2b72936c60a143d46a52dbbe81afdd72 19-Aug-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Force off ZTOP optimizations for now.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c58133b81ab7c9ee12cac05c4671a87e34708a66 08-Aug-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Remove r300_constant_buffer::user_count.

Not needed with new compiler.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d0c398a8e2985b855f923aec3470cef8734a622a 30-Jul-2009 Nicolai Hähnle <nhaehnle@gmail.com> r300g: Use radeon compiler for fragment programs

This is entirely untested on R500, and needs more testing on R300.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
188f8c679254f193cdcfcd4ef338f3c8c5e1146d 27-Jul-2009 Nicolai Hähnle <nhaehnle@gmail.com> r300g: Use r300compiler for vertex shaders
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
07961bb05e5ba05205b9f53834863664f1023870 23-Jul-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Actually mark shaders as translated/untranslated.

Also trust that Gallium will not give us TGSI that miscounts shader consts.

This creates a 20x speedup on glxgears, from 8 FPS to 160 FPS.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
e46d12d39498199e18be70826a2d36028c7b93f3 08-Jul-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: Add endian fix to vertex fetcher setup.

As reported and initially tested by MrCooper.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3f15acb7e8575faeacc50dcede6d68b1e583727d 27-Jun-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300g: EXT_provoking_vertex.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
622858884fc5923c9e7a0c1bb0e80b53f0acb5a7 26-Jun-2009 Joakim Sindholt <opensource@zhasha.com> r300-gallium: organize fragment/vertex shaders

Appart from separating r3xx/r5xx fragment shaders, a more consistent
naming scheme has been applied. From now on:
r300 = all chips
r3xx = R300/R400 only
r5xx = R500 only
This way r300_fragment_shader is the master struct, and the structs
r3xx_fragment_shader and r5xx_fragment_shader inherits it.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ffa1972efb2100fd9a58e3add856852321c3c8ca 09-Jun-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Don't emit UCP planes for SW TCL.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1a359d983512b39783ce9f4eb842d3ea4ec012a6 05-Jun-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Emit UCP.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d04c85d01bf37d480df8b9a21d9a79194d2e67f3 20-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Another constantbuf shader recompile test.

Less briefly... Shaders need to be recompiled if their constantbuf
offsets have changed. However, since we only change them from shaders if
immediates need to be emitted, we shouldn't bother if the shader doesn't
use immediates.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
5236ea39006fd0b475ff1658a1418abc71ec998c 18-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Cleanup viewport state setup.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
301d238c1adf3d451b412333a77c81af14feed6f 18-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Always do VTE, never software viewport.

This makes glxgears draw properly with SW TCL.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
e5f5390f4bcb0fb04dff11cd1333b426cba6d0d1 17-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Update XXX.

Lops work fine as long as HW TCL is off. (I think I know why.)
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
764bf9501adea0f3dbe8d7c718b22dfb067fbbfa 17-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: vs: Dupe tokens, better debug, count spurious insts.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
13131adbf1beb3e4222ce16c32ac7910a4a5331b 16-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Various cleanups leftover from before.

BEGIN/END_CS pair, a few asserts, and a slightly more correct VTE setup.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
167a6b08048573079c7d5e5f36da3de69d487b6f 12-May-2009 Joakim Sindholt <opensource@zhasha.com> r300-gallium: add missing semicolon

Yeah, that was stupid
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
62c0c7d81a3f271b7dc7177467f9c884e89f9eee 12-May-2009 Joakim Sindholt <opensource@zhasha.com> r300-gallium: duplicate tokens in create_fs_state

This was all phoenix64's idea. Credit goes to him
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
cd59933d9f70c6acea63013f1b773b545026bf81 09-May-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium, radeon: A couple cleanups.

Trying to track down goddamn bugs. :C
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
904b563fd027c05a9755bc07719c55099ab5a9fd 26-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Correctly flush Draw.

Should help with a few non-TCL bugs.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1a84072db9fb8faf39bd155c3bf249dcc99130d8 16-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Use viewport state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ffbf3f4952fa9e7c2971a73d9540ed977fdc6c9a 07-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Properly setup HW/SW TCL controls.

This keeps non-TCL chipsets from locking up, and also fully unbreaks
RADEON_NO_TCL rendering.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
50ee103cf02b66d68a2728840c9c2f990773576b 05-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Re-translate shaders if constants change.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ce7963f338ab95b06619074bc6aaf99c96ff5f11 05-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Properly interface with Draw for vert shaders.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
484795ff14faa794b7a150f29554a73e0113f67d 05-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Update state handlers/setters for vertex shaders.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
be1dbba0a4d0d75468461aff8c281a512a537ecc 04-Apr-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Clean up compile warnings and strict compile errors.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
70de577b14e9b0efab7a749203d50dc19540472d 31-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Properly redo shaders when constant buffer changes size.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1db736f74a911f74228d6843f4d981eeafb8669d 25-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Unify shader interfaces, enable r300 shader, start unbreaking.

progs/trivial/clear no longer is horrifically wrong, just kind of wrong.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
04fe31cd5efc5703b9cd975391a992866432f59d 20-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Properly offset scissors.

As per r300_reg, classic Mesa, and xf86-video-ati.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
db83ee16474a7d9b23eacd7933366c5b320255a5 18-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Emit viewport state.

Note that this will break you, hard, if you're not using RADEON_NO_TCL.
I really need to start vertex shaders soon.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
17331a77f6480183ad0f43173f77d6c73cc377ff 06-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Flat/smooth shading state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d965c15777727fec34b11c253f2a0f50c4e8e89a 06-Mar-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Pick up a few more bits of rs_state.

Including two registers that already should have been covered...huh...
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
2b7d39da1f5445e1b0beb3b8b1ef9004e684c600 28-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Move maths from r300_state to r300_state_inlines.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
d1559eac6d7f9ee8757a2adc6271eb951efc546f 28-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Be more Gallium-ish in some of the math.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3673fc35d68edf55d0b1dc0fb4c3628f228eb9d6 28-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Move all state translators to r300_state_inlines.

Tryin' to do some cleanup.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fd5411fe362a398ab0506c2becdd5953711476d5 27-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Turn true and false into TRUE and FALSE.

Match the rest of Gallium.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ea4bf267e4b023b08043f91ac44592fed1736e7f 18-Feb-2009 José Fonseca <jfonseca@vmware.com> util: Move p_debug.h into util module.

The debug functions depend on several util function for os abstractions, and
these depend on debug functions, so a seperate module is not possible.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
c613e366a9c6ab9631f8101851163caec7437237 18-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Properly init shader state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1bb2fb498ee65ba29aa4098983116be3d81cc2da 16-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Set up draw rasterizer.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1b77138a1effe2e18a9ce9e16c43852ff855a7be 16-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Add draw_arrays and friends.

This is the last bit of Gallium-side plumbing for drawing things.
From this point on, the only missing parts should be in r3xx-specific
code areas...
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
484858ae48fef039034cf43391883a432ac40c78 15-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Fix scissors.

Don't use SCISSORS_OFFSET since we're DRI2,
and don't forget to set scissors in clear.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
073a73e4c7344db46ab89862e2fbc267da34969c 13-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Various thingies.

Add formats to framebuffer emit, fix up shader function names,
make sure fragment format is emitted for r500.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8a2d0005af34cfaf88b2d70168fdfb2c91e79045 13-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Take care of various bad dereferences in shader setup.

Unbreaks glxinfo.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
affe0311fa60489e56b854c09f713fae024a0b00 13-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300-gallium: Add r500 passthrough shader assembly.

This allows a simple passthrough fragment shader to be provided on r500.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fb8b794c69330924ad15083237b1a8a35eb62e31 05-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add shader state stubs.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
9f10b16790d7e4e224fc30cf105df944275d6353 04-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: A bit more cleanup and state handling.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
e1b04da9b35aad1f474f7396f206a7c124c6859b 03-Feb-2009 Joakim Sindholt <bacn@zhasha.com> r300: fix compiler/linker errors
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
3aabfa46083daf60859bb26b65568de4cf40915f 03-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Clear up XXX in r300_state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
ce6710e369d3b5c512ba8b315efc863fd41de734 02-Feb-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Clean up after rebase.

Fix a couple struct members, clear up a few texture lines.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
e6e6b493b6123df675d5222b0e78087a370aea01 30-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add more rs_state, fix indents on dsa_state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
8c8bdcde6d9eb1cda7bf268cd75ca7676e220075 30-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add line stipple state to rs_state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
188f61d43ae82c63d557d25282e349926321e3d0 24-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Hook up clear, set it to fallback.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
161f4068aa5f8b556d0c00c3e31192b3736aada5 24-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: More state setters.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
7d3d3c75cc1bade8eeb7cbbabd290e2b30dc3100 24-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Plan for the next state setters.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
1a503019d73701ed311b15107f314bc84968bdb7 24-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Moar state handlers.

Ah, my code's so bad. It's amazing.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
45cb94217ebd55a4d38264ce83806062ba25a478 24-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add fragment shader stubs.

Not looking forward to filling these out at all.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
2f37387786f1d0d6beded5afc29d36f744f1c948 23-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add texture sampler state.

Easy compared to the actual texture handling code.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
90a96cb2addf48b3b48c039a8dc6de9e53bfb6df 22-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add sampler state skeleton.

Heh, serendipitous sibilance. Anyway, need to flesh this out.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
6885560de54db26683eb813756e09fa3822c3492 21-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Fix constness, compile warnings, indentation in r300_state.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
2e09845277ce75fa7d29020c5b119ad749522592 20-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Various flags, small state tracking things.

Getting these out of the way so more stuff can be put in.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
4ea17301c60a805394b8938174d8f436dc3deb6d 17-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Remove r300_state.h
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
f3b53a5cb6a04b86ccd75cc38c73c8e3dd117894 17-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add blend color.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
a08a830fd3c22bdbad1ee840e4e56302152375f1 17-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add more state.

pipe_rasterizer_state is big, and I'm still processing it.

Todo:
- LOL EVERYTHING
- Moar cough syrup.
- Even moar cough syrup.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
21a5a133fff3ab1a068a11a32144dcb63f1d5020 14-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Hook up state functions.

Haha, should not have attempted the scissors.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
bbb1c6f6298fcb1125a8170f22646f326b0ca74c 14-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add DSA state.

That's it for now. Just the "easy" stuff.

Todo:
- Rasterizer state, which is a lot more than just the RS.
- Miscellaneous state which doesn't currently belong to any state object.
- Shader assemblers?
- Fix dynamic loading bugs.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
28bb7f3206f023a9d3cfa020da344a57118a2efb 14-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add scissor state, fix build.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
74288078eab1971cc6ce3ae00fa55eb917b5826a 14-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> r300: Add blend state.

Also switched to r300_reg instead of radeon_reg. Yay?
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
fb11fb897c2dc8cde64c84962d40e5fa6f384307 09-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> gallium-r300: Add copyrights, place (broken) CS.

Todo:
- Fill blits.
- Less suck.
- Ask glisse about how to get winsys+pipe talking right,
so stuff like the CS can be set up right.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c
da1928d4a6d48e915960798015ed1f0c1fa95f0c 06-Jan-2009 Corbin Simpson <MostAwesomeDude@gmail.com> gallium-r300: Initial commit.

Or should it be r300-gallium? Meh, whatever.
/external/mesa3d/src/gallium/drivers/r300/r300_state.c