History log of /external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c90ae6b501a4a72d33869e1be241e87264747735 12-Mar-2012 Brian Paul <brianp@vmware.com> radeon/r200: remove ClearColor driver functions

The state.color.clear value was never used anywhere.

Reviewed-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
e0ed951e1361e54ffd8e9c56fbcc2027c0c4bd24 12-Mar-2012 Brian Paul <brianp@vmware.com> radeon/r200: remove ClearDepth() and ClearStencil() driver hooks

The computed stencil.clear and depth.clear values aren't used anywhere.
Those fields have been removed too.

Reviewed-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
c080202db5363a18a759a9a7c82b40ac558c8abe 16-Jan-2012 Brian Paul <brianp@vmware.com> radeon: derive radeon_renderbuffer from swrast_renderbuffer
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
5c666bdfdb7681c2250b801ff286c4837ea36893 05-Dec-2011 Dave Airlie <airlied@redhat.com> radeon: add some tiling support for r100.

This sets up the tiling flags on the blitter.

Fixes some piglit tests with tiling enabled.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
fd7fcfcc2dffb73ac3159a04ccd164b527c11a8f 11-Nov-2011 Dave Airlie <airlied@redhat.com> radeon: set texture bits to always emit.

I think there is a missing state update or flush somewhere, and every
so often PP_CNTL goes to the kernel with a texture enabled but no texture.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
56d30bb00d40cd391d7a469604792a27ddcc459c 29-Oct-2011 Dave Airlie <airlied@redhat.com> radeon/r200: drop remains of r300/r600 support along with old drm 1.x kernel

This drops all the old drmSupports* checks since KMS does them all, and it
also drop R300_CLASS and R600_CLASS.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
0973a1ec78fdedc5401cb1c0f6d027425c492509 14-Oct-2011 Eric Anholt <eric@anholt.net> radeon: Drop the non-kernel-memory-manager support, and thus DRI1.

It's past time, and it was going to get in the way of the renderbuffer
mapping refactor. We dropped all the other DRI1 drivers for this
release, and I can't imagine anybody supporting DRI1 radeon classic in
a new release of Mesa.

Diff produced by treating kernel_mm as true, deleting the DRI1 paths
that produce kernel_mm false, and deleting code.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
f7bab47e6c7cf877acf6d9bb85453851e5aa7f19 19-Jan-2011 Dave Airlie <airlied@redhat.com> radeon/r200: fix fbo-clearmipmap + gen-teximage

sw clears were being used and not getting the correct offsets in the span
code.

also not emitting correct offsets for CB draws to texture levels.

(I've no idea why I'm playing with r100).

This is a candidate for 7.9 and 7.10
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
8a2cf4549a4e88d8981d75b003ac0a43e71f5e41 31-Jan-2010 Vinson Lee <vlee@vmware.com> radeon: Remove unnecessary headers.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
93eb2ab8c395f81e40fa298d78805bb2c777f891 17-Nov-2009 Maciej Cencora <m.cencora@gmail.com> radeon: align for mipmap tree changes
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
45e76d2665b38ba3787548310efc59e969124c01 09-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove a bunch of gl_renderbuffer fields

_ActualFormat is replaced by Format (MESA_FORMAT_x).
ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are
all replaced by MESA_FORMAT_x queries.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
7d361537661b93a501c9533271458a41b965ea79 01-Sep-2009 Dave Airlie <airlied@redhat.com> radeon: fix r100/r200 polygon stipple under kms

There really need to use state emits under kms, otherwise
we end up with some dwords in the command buffer before we've
ever emitted any useful state.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
a2bd13fec9ac2bd77ee21cb85a636fde80ce0368 01-Sep-2009 Dave Airlie <airlied@itt42.(none)> r100: fixup cubemap domains
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
674835f184b37ad378ce2e35f1a8326af0facc77 26-Aug-2009 Dave Airlie <airlied@linux.ie> radeon/r100/r200: actually init the OQ support properly
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
5484428d7267388fde868e64531dcdf98b55fafc 26-Aug-2009 Dave Airlie <airlied@linux.ie> radeon: add r100 OQ support with kms.

This adds OQ support for the r100 chipsets, it requires
KMS unless someone wants to make a kernel patch to add support
for OQ regs.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
ccde2768380efbdde467cc37e1a248c447f46d20 24-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Fix dri1 ctx emit size.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
7bb0f880dbdee0c57693c3a1f331d7c0894e71e1 23-Aug-2009 Pauli Nieminen <suokkos@gmail.com> Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into r600_state_predict

Conflicts:
src/mesa/drivers/dri/r300/r300_cmdbuf.c
src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
ef98eed0a94f3b76399b19f9f65ca6977cd11b5d 21-Aug-2009 Brian Paul <brianp@vmware.com> radeon: fix incorrect loop limit (warned by -O3)
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
d1a0ece9077b3de49c293a04c220b995424cef28 12-Aug-2009 Pauli Nieminen <suokkos@gmail.com> radeon: Port flush preventation code from r200 to r100.

- emit prediction
- fixes to emit_sizes for data
- clean up of excesive use of radeonEnsureCmdBufferSpace

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
7247446ba81b6bafede9ead750e5b5e81f3f1a10 21-Jul-2009 Jerome Glisse <glisse@freedesktop.org> radeon: fix colorbuffer pitch emission regarding tiling in KMS/CS case

We need to emit a relocation for pitch register so that kernel can
check and properly setup tiling on the color buffer.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
33f56b4612e506999a2be8391ba82c0174afa1b3 14-Jul-2009 Michel Dänzer <daenzer@vmware.com> radeon: Differentiate 16 bpp destination formats.

Fixes those formats in fbo_firecube.

Only tested with r300, radeon and r200 compile tested only.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
2ed3eddf9a828f2ff6c74b0913ca37fb60672950 02-Jul-2009 Dave Airlie <airlied@redhat.com> radeon/r300: use base width/height.

I suspect this might break TFP in some way but it makes firecube run here
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
4d2b392a0ac597f8b7f88006746660e8f0fe09ea 19-Jun-2009 Roland Scheidegger <sroland@vmware.com> radeon: fix cube maps for non-mm path

drm cmd checker would refuse cube emits
also fix an issue in the cs path which would calculate the register
offset off by one dword.
Only same testing done as original code (none except compile tested).
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
7f65fea95e56fe0dee91ba726358896c9899780a 06-May-2009 Dave Airlie <airlied@redhat.com> radeon: hopefully fixup radeon cube state emission for kms
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
8181f8fbf9c3d0f60191ee874248b8113b215e30 12-Apr-2009 Jerome Glisse <glisse@freedesktop.org> radeon: emit scissor when using cs path
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
e00ef43d796f0ae0247b1072bf0aa8cdd8e3034d 02-Apr-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: collapse context destruction down to a common path.

Context destruction was nearly the same over all the drivers,
so collapse it down.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
8c7e30fb950c83f5e9e29e60735e999ac608145a 23-Mar-2009 Dave Airlie <airlied@redhat.com> raedon/r200/r300: mega-FBO commits.

Re work depth issues.
Do a lot more FBO abstactions
fixup depth/stencil buffer interactions
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
31f129880719f75c491fa2ad269055fbc2fb9b95 04-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: r100 clean up CS packet size calc
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
924bf0d8d3db28941efa97911bdcdd01a3f33b7c 04-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: settexbuffer support

This gets DRI2 compiz going
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
26d0172a5bc5b733e839e3ccb8d497cab2bcce98 04-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fix texturing for r100
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
e0de73e8a558db5dfe8e20ed7aa2e9eae28861c1 04-Mar-2009 Dave Airlie <airlied@redhat.com> radeon: fixup some segfaults/exit at startup
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
e267a090ab7be5dbd9a40887726e6ae696bc7be3 26-Feb-2009 Dave Airlie <airlied@redhat.com> r200: port over cs emit changes from radeon
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
6d7164705b933c754dddea6015b653a3bacc75bf 26-Feb-2009 Dave Airlie <airlied@redhat.com> r100: fixup kms state emissions
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
925ea2d9a5096dbad1d82dc1afffb13a650de799 25-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: move CB/ZB state init into emit code

This removes the use of the sarea for this stuff so makes DRI2 easier
and emits the CB/ZB info in the correct place
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
62d504d818f1ab1836a134658b1661ceabb65f1f 17-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200: drop dirty state from texture object + pp_txoffset

this is just more code cleanup for old dead code
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
cd4e37c8fb7c03e8331a9487d46043eea70fea31 13-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: add initial cubemap support appears to work
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
2753dd42fd42a3383d2e74ab231d0b1373a2d46d 13-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200: make setTexOffset work again
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
dc8a707c672918b88dd4135930bef60ed148d8ce 12-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: make build with out libdrm_radeon installed for now
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
23d3559bd4ece1fcab5513ebdaa38600d6654374 12-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: renaming and headers cleanup
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
1090d206de011a67d236d8c4ae32d2d42b2f6337 12-Feb-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: another big merge upheavel.

This merges lots of the hw state atom emission and firevertices code.

it also removes a lot of the extra radeon crap from r300

and merge scissor
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
639b5fca0c5cea26a9dc393b538508aece16ce6b 10-Feb-2009 Dave Airlie <airlied@redhat.com> r100: fix 3D texture fallback
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
b1df5ed6db4d79de895e37bcdd12dfbaae7bd4f6 09-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: put back state emission lastcmd
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
ccf7814a315f0be05cdc36ca358e2917a3d4ac19 09-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: major cleanups removing old dead codepaths.

This should be working gears on radeon state
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
3fafaf8959681cc41c988607bb6e387bab4fe1b5 08-Feb-2009 Dave Airlie <airlied@redhat.com> radeon: make more r100 work
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
36d3f3e74a809ad346e981805a2f61710d3a380b 06-Feb-2009 Dave Airlie <airlied@redhat.com> r100: fixup radeon so gears seems to work
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
0c0a55a21158e1f97cf140c0a1c0531c06751873 15-Jan-2009 Dave Airlie <airlied@linux.ie> r100/r200: move to new atom style emission
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
d29e96bf33e91d071770b86d87ffc4ef4dfc2f70 13-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: attempt to move lock to common code
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
4637235183b80963536f2364e4d50fcb894886dd 14-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200/r300: initial attempt to convert to common context code
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
b6e486906968d82c7b8a869d7ab51697a7cce80c 13-Jan-2009 Dave Airlie <airlied@redhat.com> radeon/r200: move state atom to common header
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
45efcc44c758a94928648bc20df32b98b3462bcc 21-Sep-2008 Keith Whitwell <keith@tungstengraphics.com> Remove CVS keywords.

Cherry-picked from gallium-0.1

Conflicts:

src/glu/sgi/libnurbs/interface/bezierEval.h
src/glu/sgi/libnurbs/interface/bezierPatch.h
src/glu/sgi/libnurbs/interface/bezierPatchMesh.h
src/glu/sgi/libnurbs/internals/dataTransform.h
src/glu/sgi/libnurbs/internals/displaymode.h
src/glu/sgi/libnurbs/internals/sorter.h
src/glu/sgi/libnurbs/nurbtess/definitions.h
src/glu/sgi/libnurbs/nurbtess/directedLine.h
src/glu/sgi/libnurbs/nurbtess/gridWrap.h
src/glu/sgi/libnurbs/nurbtess/monoChain.h
src/glu/sgi/libnurbs/nurbtess/monoPolyPart.h
src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h
src/glu/sgi/libnurbs/nurbtess/partitionX.h
src/glu/sgi/libnurbs/nurbtess/partitionY.h
src/glu/sgi/libnurbs/nurbtess/polyDBG.h
src/glu/sgi/libnurbs/nurbtess/polyUtil.h
src/glu/sgi/libnurbs/nurbtess/primitiveStream.h
src/glu/sgi/libnurbs/nurbtess/quicksort.h
src/glu/sgi/libnurbs/nurbtess/rectBlock.h
src/glu/sgi/libnurbs/nurbtess/sampleComp.h
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h
src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h
src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h
src/glu/sgi/libnurbs/nurbtess/sampledLine.h
src/glu/sgi/libnurbs/nurbtess/searchTree.h
src/glu/sgi/libnurbs/nurbtess/zlassert.h
src/glu/sgi/libutil/error.c
src/glu/sgi/libutil/glue.c
src/glu/sgi/libutil/gluint.h
src/glu/sgi/libutil/project.c
src/glu/sgi/libutil/registry.c
src/glx/x11/glxclient.h
src/glx/x11/glxext.c
src/mesa/drivers/dri/ffb/ffb_dd.h
src/mesa/drivers/dri/ffb/ffb_points.h
src/mesa/drivers/dri/gamma/gamma_context.h
src/mesa/drivers/dri/gamma/gamma_macros.h
src/mesa/drivers/dri/i810/i810context.h
src/mesa/drivers/dri/r128/r128_dd.h
src/mesa/drivers/dri/tdfx/tdfx_dd.h
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
ecadb51bbcb972a79f3ed79e65a7986b9396e757 18-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: added "main/" prefix to includes, remove some -I paths from Makefile.template
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
80c88304fc9d09531b2530b74973821e47b46753 31-Oct-2006 Keith Whitwell <keith@tungstengraphics.com> remove vtxfmt code, switch over to vbo
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
8bc4dae67e083c6415c07e6ff77e700f7395dc9e 07-Jan-2006 Roland Scheidegger <rscheidegger@gmx.ch> cube maps on r100 require newer drm than the same feature on r200 (regression from introducing unfied initialization). Fix wrong (so far unused) family assignment for r100 cards.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
3a5626cb846ad767fe1c38fe35ebe4df3e3a0454 02-Nov-2005 Eric Anholt <anholt@FreeBSD.org> First step of Radeon DRI unification:
- Makes all three drivers use the same screen structure and setup code, with a
few ifdefs for the separate compilation to deal with symbols not being
available to all drivers and the fact that we have no mechanism for dealing
with different config options for different chip families in the same driver.
These issues should be dealt with later.
- Introduces IS_R[123]00_CLASS(radeonScreenPtr) macro for code for taking
different paths depending on the general class of chipset.
- Adds many new R300-class PCI IDs, though not all those listed in
radeon_driver.c.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
2d61d301171620efe624d83a5457f4094eb49cba 17-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> add GL_EXT_fog_coord support to radeon driver. No vtxfmt code (just uses fallback) yet. May cause a tcl fallback if fog coord is used together with separate specular lighting. Fog factors are precomputed and then submitted instead of the raw coords (chip limitation, same as on r200).
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
247f3b3e81fffa86c50531070fab573e26ffb452 16-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> enable cube maps on radeon (#2241 on bugzilla). No vtxfmt code yet (just generates vfmt fallback). Code by Andreas Stenglein, some small adjustments by me.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
30daa7529331057ecb470efb500152e9c4aa1ae5 13-Oct-2005 Roland Scheidegger <rscheidegger@gmx.ch> enable 3rd texture unit on radeon (default still 2 enabled units). Disable some multitexcoord codegen stuff noone understands to make it work. Replace most code testing explicitly for unit 0 and 1 with loops instead of adding test for unit 2, smaller/more readable code at the cost of maybe some slight performance hit. (Code provided by Andreas Stenglein, some adjustments by me.)
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
982e8e4d5c95e9e9040b4b70d7322a2a8a9396d9 01-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> Finish up some of the gl_renderbuffer work.
Use driRenderbuffer's offset, pitch fields in the span routines.
Remove the SetBuffer driver function.
Consolidate the code for setting CTX_RB3D_COLOROFFSET and CTX_RB3D_COLORPITCH
state in new radeonUpdateDrawBuffer() function.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
2c28dd892cfb43445d7e54df8b6a8331192f4e99 16-Feb-2005 Brian Paul <brian.paul@tungstengraphics.com> s/0/NULL/ (Jeff Muizelaar)
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
a205137423e42010a025c70b05af98a6c0564f28 26-Jan-2005 Roland Scheidegger <rscheidegger@gmx.ch> (Stephane Marchesin, me) Add support for color (framebuffer) tiling to the radeon and r200 driver
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
0cbc25480f3108a9a49277d57ba2b9e2332d3ccd 26-Jan-2005 Roland Scheidegger <rscheidegger@gmx.ch> replace magic number with macro constant RADEON_ZBLOCK16
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
b31b7836d6e7abf80dd4feacce333d4b1fe6e4ab 08-Dec-2004 Roland Scheidegger <rscheidegger@gmx.ch> (Stephane Marchesin, me) add hyperz support to radeon and r200 drivers. Only fast z clear and z buffer compression are supported for now, hierarchical-z is not. Still problems with multiple apps and z/stencil readback, which is why hyperz is disabled per default. Also add the new point sprite packet drm 1.13 accepts to the sanity code.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
7a086dc05e665a78f7e9d069aa4fc70e844b8988 30-Sep-2004 Eric Anholt <anholt@FreeBSD.org> OK, one more time. Simplify the state-backup system by just storing the full
state in a ready-to-emit cmdbuf, which avoids the issue Nicolai Haehnle reported
where the check() could return differently during backup-and-emit than it should
have if it were called at the right time. Move the lit emission before most of
the TCL state emission on r200, which fixes neverball issues.

Tested with: r100/r200 with neverball, tuxracer, chromium, quake3, ipers
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
5562fe653cf88454bbf2c50f77a8b56b0dafe01b 25-Sep-2004 Eric Anholt <anholt@FreeBSD.org> The previous code would emit a full set of state during the first EmitState on
a new cmdbuf, to ensure that state wasn't lost across UNLOCK/LOCK pairs (in the
case of context switching). This was rather inefficient. Instead, after
flushing a cmdbuf, mark the state as needing to be saved on unlock. Then, at
the beginning of flushing a cmdbuf, if we actually have lost the context, go
back and emit a new cmdbuf with the full set of state, before continuing with
the cmdbuf flush. Provides a 10-15% improvement in ipers performance in my
tests, along with other apps.

Tested with: ipers, glxgears, quake3
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
6f3cc6a5226fd4b5d44cca91e2f76216ecaff831 17-Aug-2004 Eric Anholt <anholt@FreeBSD.org> Close some races with locking on R100 and R200 which could manifest as rendering
errors on r100 and rendering errors and hangs on r200 (same for R100 without
OLD_PACKETS).

If a command buffer filled after some state (EmitState or a VBPNTR write) was
emitted, the lock was grabbed, the buffer flushed, a new buffer prepared, and
the lock dropped. Another client could come in, set its own state as part of
rendering, and when the first client flushed the rendering commands depending
on the previous state, it got the 2nd client's state. This is fixed by checking
for enough space before beginning a set of state emits and rendering, and
flushing the buffer first if so. This guarantees that the buffer won't wrap.

Also, move the "lost_context = 1" from the end of cmdbuf flushing to
UNLOCK_HARDWARE for clarity (at a minimum) that any time the lock is dropped,
state may get overwritten. We don't have enough information at the point of the
LOCK_HARDWARE to reset our state to the last UNLOCK_HARDWARE point in the case
that we did lose our context, but saving the information to rebuild that state
may be a useful optimization (ipers data suggests up to 5%).
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
ae4a1cc0666860bf5cc37a5cb549afc9aa5448b0 11-Mar-2004 Jon Smirl <jonsmirl@gmail.com> Adjustments to make everything use IOCTL/sarea defines in DRM instead
of glx/mini. removes glx/mini/drm.h glx/mini/sarea.h
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
f64f940281f0d716e0ddc641e7ef1728f143d67f 11-Feb-2004 Roland Scheidegger <rscheidegger@gmx.ch> change lighting to use MULT instead of PREMULT (i.e. move some lighting color calculations to the GPU)
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
5d00e131d8a264498b8d050c3eded093ee5c42f2 23-Jan-2004 Michel Dänzer <michel@daenzer.net> Fix attenuation hardware state handling, inspired by the R200 DDK reference
driver (our r200 driver basically didn't do this at all, maybe got lost
along the way?)
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
99ef0a03292e7dc6aa2465aaaa620f394d2c286b 08-Dec-2003 Alan Hourihane <alanh@tungstengraphics.com> merge some more of the radeon DRI driver from the DRI trunk
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
bcc6eddd335e97d49ed2ef3a1440f94d58dce12d 21-Oct-2003 Jon Smirl <jonsmirl@gmail.com> Update DRI drivers to current DRI CVS and make them work.
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c
5df82c82bd53db90eb72c5aad4dd20cf6f1116b1 22-Aug-2003 Brian Paul <brian.paul@tungstengraphics.com> patch to import Jon Smirl's work from Bitkeeper
/external/mesa3d/src/mesa/drivers/dri/radeon/radeon_state_init.c