mesa.git
14 years agoi965g: fixes to build after merge of master
Keith Whitwell [Mon, 21 Dec 2009 19:50:05 +0000 (19:50 +0000)]
i965g: fixes to build after merge of master

14 years agoi965g: remove half-finished change to tgsi_parse
Keith Whitwell [Mon, 21 Dec 2009 19:22:45 +0000 (19:22 +0000)]
i965g: remove half-finished change to tgsi_parse

14 years agoi965g: back out unintentional changes to linux-dri
Keith Whitwell [Mon, 21 Dec 2009 19:21:09 +0000 (19:21 +0000)]
i965g: back out unintentional changes to linux-dri

14 years agoi965g: back out unintentional changes to gears
Keith Whitwell [Mon, 21 Dec 2009 19:19:01 +0000 (19:19 +0000)]
i965g: back out unintentional changes to gears

14 years agoMerge commit 'origin/master' into i965g-restart
Keith Whitwell [Mon, 21 Dec 2009 19:18:41 +0000 (19:18 +0000)]
Merge commit 'origin/master' into i965g-restart

Conflicts:
SConstruct
configs/default
configs/linux-dri

14 years agows/i965: respect DEBUG_WINSYS flag
Keith Whitwell [Mon, 21 Dec 2009 16:58:14 +0000 (16:58 +0000)]
ws/i965: respect DEBUG_WINSYS flag

14 years agoi965g: hook vertex state emit up to PIPE_NEW_VERTEX_BUFFER
Keith Whitwell [Mon, 21 Dec 2009 16:57:37 +0000 (16:57 +0000)]
i965g: hook vertex state emit up to PIPE_NEW_VERTEX_BUFFER

14 years agoi965g: keep refcounts to bound vertex buffers
Keith Whitwell [Mon, 21 Dec 2009 16:56:46 +0000 (16:56 +0000)]
i965g: keep refcounts to bound vertex buffers

14 years agoi965g: add DEBUG_WINSYS flag
Keith Whitwell [Mon, 21 Dec 2009 16:55:40 +0000 (16:55 +0000)]
i965g: add DEBUG_WINSYS flag

14 years agoi965g: remove duplicate set_viewport_state, fixes samples/depth
Keith Whitwell [Mon, 21 Dec 2009 15:38:08 +0000 (15:38 +0000)]
i965g: remove duplicate set_viewport_state, fixes samples/depth

14 years agoi965g: nasty hack for clearing y-tiled surfaces
Keith Whitwell [Tue, 1 Dec 2009 17:04:46 +0000 (17:04 +0000)]
i965g: nasty hack for clearing y-tiled surfaces

14 years agoi965g: add missing header
Keith Whitwell [Tue, 1 Dec 2009 16:39:02 +0000 (16:39 +0000)]
i965g: add missing header

14 years agoi965g: don't reference unused vars in RSQ
Keith Whitwell [Tue, 1 Dec 2009 16:32:33 +0000 (16:32 +0000)]
i965g: don't reference unused vars in RSQ

Probably overly pedantic

14 years agomesa/st: avoid quadstrips if its easy to do so
Keith Whitwell [Tue, 1 Dec 2009 16:31:21 +0000 (16:31 +0000)]
mesa/st: avoid quadstrips if its easy to do so

Tristrips are easier for many drivers to handle.

14 years agotgsi: fix ureg emit after version token change
Keith Whitwell [Tue, 1 Dec 2009 15:01:00 +0000 (15:01 +0000)]
tgsi: fix ureg emit after version token change

14 years agost/xorg: fix merge droppings
Keith Whitwell [Tue, 1 Dec 2009 14:54:32 +0000 (14:54 +0000)]
st/xorg: fix merge droppings

These were stranded in emacs and not saved before committing.

14 years agoMerge commit 'origin/tgsi-simplify-ext'
Keith Whitwell [Tue, 1 Dec 2009 14:31:14 +0000 (14:31 +0000)]
Merge commit 'origin/tgsi-simplify-ext'

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

14 years agoMerge commit 'origin/mesa_7_7_branch'
Keith Whitwell [Tue, 1 Dec 2009 10:57:37 +0000 (10:57 +0000)]
Merge commit 'origin/mesa_7_7_branch'

Conflicts:
src/gallium/drivers/svga/svga_screen_texture.c
src/gallium/state_trackers/xorg/xorg_composite.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/gallium/state_trackers/xorg/xorg_renderer.c
src/gallium/state_trackers/xorg/xorg_xv.c
src/mesa/main/texgetimage.c
src/mesa/main/version.h

14 years agomesa: Update vertex texture code after gallium changes.
Michal Krol [Tue, 1 Dec 2009 10:19:33 +0000 (11:19 +0100)]
mesa: Update vertex texture code after gallium changes.

14 years agor300g: simplify allocations of VS output registers
Marek Olšák [Fri, 27 Nov 2009 09:19:20 +0000 (10:19 +0100)]
r300g: simplify allocations of VS output registers

No need to parse TGSI tokens since it's easier to walk through shader
semantics.

Also fog coordinates now work reliably.

14 years agor300g: simplify allocations of FS input registers
Marek Olšák [Fri, 27 Nov 2009 05:36:31 +0000 (06:36 +0100)]
r300g: simplify allocations of FS input registers

14 years agor300g: clean up derived states
Marek Olšák [Thu, 26 Nov 2009 18:37:58 +0000 (19:37 +0100)]
r300g: clean up derived states

The state setups which aren't derived anymore have been moved to the VS
and FS objects.

14 years agor300g: VS->FS attribute routing rework
Marek Olšák [Thu, 26 Nov 2009 12:49:41 +0000 (13:49 +0100)]
r300g: VS->FS attribute routing rework

Now it always correctly pairs up VS and FS even if the semantics and indices
of VS outputs and FS inputs don't match.

14 years agor300g: add R300 prefix in reg definitions
Marek Olšák [Tue, 24 Nov 2009 23:24:28 +0000 (00:24 +0100)]
r300g: add R300 prefix in reg definitions

14 years agocso: Fix function prototype.
Michal Krol [Tue, 1 Dec 2009 09:07:15 +0000 (10:07 +0100)]
cso: Fix function prototype.

14 years agotrace: Implement separate vertex sampler state.
Michal Krol [Tue, 1 Dec 2009 08:50:38 +0000 (09:50 +0100)]
trace: Implement separate vertex sampler state.

14 years agofo: Implement separate vertex sampler state.
Michal Krol [Tue, 1 Dec 2009 08:39:08 +0000 (09:39 +0100)]
fo: Implement separate vertex sampler state.

14 years agoid: Implement separate vertex sampler state.
Michal Krol [Tue, 1 Dec 2009 08:01:27 +0000 (09:01 +0100)]
id: Implement separate vertex sampler state.

14 years agotrace: Reduce double semicolons to single ones.
Michal Krol [Tue, 1 Dec 2009 07:54:30 +0000 (08:54 +0100)]
trace: Reduce double semicolons to single ones.

14 years agosp: Do not falsely advertise support for some SNORM formats.
Michal Krol [Tue, 1 Dec 2009 07:52:37 +0000 (08:52 +0100)]
sp: Do not falsely advertise support for some SNORM formats.

14 years agosp: Implement separate vertex sampler state.
Michal Krol [Tue, 1 Dec 2009 07:51:20 +0000 (08:51 +0100)]
sp: Implement separate vertex sampler state.

14 years agopython: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:47:00 +0000 (08:47 +0100)]
python: Update for renamed sampler/texture state setters.

14 years agost: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:44:18 +0000 (08:44 +0100)]
st: Update for renamed sampler/texture state setters.

14 years agotrace: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:43:51 +0000 (08:43 +0100)]
trace: Update for renamed sampler/texture state setters.

14 years agosvga: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:40:53 +0000 (08:40 +0100)]
svga: Update for renamed sampler/texture state setters.

14 years agor300: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:40:31 +0000 (08:40 +0100)]
r300: Update for renamed sampler/texture state setters.

14 years agonv: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:40:21 +0000 (08:40 +0100)]
nv: Update for renamed sampler/texture state setters.

14 years agolp: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:40:04 +0000 (08:40 +0100)]
lp: Update for renamed sampler/texture state setters.

14 years agoid: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:39:49 +0000 (08:39 +0100)]
id: Update for renamed sampler/texture state setters.

14 years agoi915: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:39:19 +0000 (08:39 +0100)]
i915: Update for renamed sampler/texture state setters.

14 years agofo: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:39:07 +0000 (08:39 +0100)]
fo: Update for renamed sampler/texture state setters.

14 years agocell: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:38:32 +0000 (08:38 +0100)]
cell: Update for renamed sampler/texture state setters.

14 years agovl: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:38:06 +0000 (08:38 +0100)]
vl: Update for renamed sampler/texture state setters.

14 years agodraw: Update for renamed sampler/texture state setters.
Michal Krol [Tue, 1 Dec 2009 07:37:15 +0000 (08:37 +0100)]
draw: Update for renamed sampler/texture state setters.

14 years agocso: Add support for separate vertex sampler state.
Michal Krol [Tue, 1 Dec 2009 07:35:43 +0000 (08:35 +0100)]
cso: Add support for separate vertex sampler state.

14 years agogallium: Introduce separate vertex texture/sampler state.
Michal Krol [Tue, 1 Dec 2009 07:33:43 +0000 (08:33 +0100)]
gallium: Introduce separate vertex texture/sampler state.

Previously, gallium shared sampler and texture state between vertex
and fragment shader stages. This change generalises this concept by
providing separate entrypoints for vertex and fragment sampler state
setting.

A new capability bit is added to query the driver for the number
of samplers that can be utilised by a vertex and fragment shader
at the same time.

14 years agotgsi/sanity: Up MAX_REGISTERS to 1024.
Michal Krol [Fri, 27 Nov 2009 11:33:17 +0000 (12:33 +0100)]
tgsi/sanity: Up MAX_REGISTERS to 1024.

14 years agomesa: set version string to 7.7-rc1
Ian Romanick [Tue, 1 Dec 2009 01:56:07 +0000 (17:56 -0800)]
mesa: set version string to 7.7-rc1

14 years agoMerge branch 'mesa_7_6_branch' into mesa_7_7_branch
Ian Romanick [Tue, 1 Dec 2009 01:47:07 +0000 (17:47 -0800)]
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
progs/util/shaderutil.c
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/main/version.h

14 years agoi915: Actually put i915PointParameterfv in the driver function table. Duh.
Ian Romanick [Mon, 30 Nov 2009 20:43:12 +0000 (12:43 -0800)]
i915: Actually put i915PointParameterfv in the driver function table.  Duh.

14 years agoi965g: turn on texture tiling by default
Keith Whitwell [Mon, 30 Nov 2009 16:16:30 +0000 (16:16 +0000)]
i965g: turn on texture tiling by default

14 years agost/mesa: handle front/back-face +1/-1 vs. 1/0 conversion
Brian Paul [Mon, 30 Nov 2009 15:56:47 +0000 (08:56 -0700)]
st/mesa: handle front/back-face +1/-1 vs. 1/0 conversion

Fixes progs/glsl/twoside.c demo.

14 years agoi965g: pass backbuffer tiling information to driver
Keith Whitwell [Mon, 30 Nov 2009 15:35:58 +0000 (15:35 +0000)]
i965g: pass backbuffer tiling information to driver

The gem winsys gets this information, needs to pass it on.

14 years agows/i965: more debug output
Keith Whitwell [Mon, 30 Nov 2009 14:58:30 +0000 (14:58 +0000)]
ws/i965: more debug output

14 years agows/i965: rename and change sense of I965_SEND_CMD to BRW_NO_HW
Keith Whitwell [Mon, 30 Nov 2009 14:20:33 +0000 (14:20 +0000)]
ws/i965: rename and change sense of I965_SEND_CMD to BRW_NO_HW

14 years agobrw: add dumping to gem winsys
Keith Whitwell [Mon, 30 Nov 2009 13:39:21 +0000 (13:39 +0000)]
brw: add dumping to gem winsys

14 years agoi965g: remove redundant nr_attrs member
Keith Whitwell [Wed, 25 Nov 2009 23:02:46 +0000 (23:02 +0000)]
i965g: remove redundant nr_attrs member

14 years agomesa: Fix array out-of-bounds access by _mesa_TexParameterf.
Vinson Lee [Mon, 30 Nov 2009 02:17:44 +0000 (21:17 -0500)]
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.

_mesa_TexParameterf calls set_tex_parameterf, which uses the params
argument as an array.

14 years agoi915: Fallback bit define missed on previous commit
Ian Romanick [Mon, 30 Nov 2009 01:49:55 +0000 (17:49 -0800)]
i915: Fallback bit define missed on previous commit

14 years agoi915: Round point sizes instead of truncate.
Ian Romanick [Mon, 30 Nov 2009 01:43:38 +0000 (17:43 -0800)]
i915: Round point sizes instead of truncate.

14 years agoi915: Enable point sprite coordinate generation
Ian Romanick [Mon, 30 Nov 2009 01:40:02 +0000 (17:40 -0800)]
i915: Enable point sprite coordinate generation

Support still isn't completely correct, but it's better.  piglit
point-sprite now passes.  However, glean's pointSprite test fails.  In
that test the texture on the sprite is somehow inverted as though
GL_POINT_SPRITE_COORD_ORIGIN were set to GL_LOWER_LEFT.  i915 hardware
shouldn't be able to do that!

I believe there are also problems when not all texture units have
GL_COORD_REPLACE set.  The hardware enable seems to be all or nothing.

Fixes bug #25313.

14 years agomesa: Fix array out-of-bounds access by _mesa_TexParameterf.
Vinson Lee [Sun, 29 Nov 2009 23:18:23 +0000 (18:18 -0500)]
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.

_mesa_TexParameterf calls set_tex_parameteri, which uses the params
argument as an array.

14 years agor600 : clena up a bit for last commit.
Richard Li [Sun, 29 Nov 2009 17:28:32 +0000 (12:28 -0500)]
r600 : clena up a bit for last commit.

14 years agor600 : add read port allocation for uniform;
Richard Li [Sun, 29 Nov 2009 17:12:19 +0000 (12:12 -0500)]
r600 : add read port allocation for uniform;
       mapping ps input based on vs output;
       fix bugs including constants updating for vs.

14 years agoradeon: update miptree code a little
Maciej Cencora [Sun, 29 Nov 2009 14:40:13 +0000 (15:40 +0100)]
radeon: update miptree code a little

Simplify gl image level <-> miptree level mapping (are equal now).
Don't allocate miptree for images that won't fit in it (fixes #25230).

14 years agoradeon: don't check the same miptree many times when looking for matching miptrees
Maciej Cencora [Sun, 29 Nov 2009 11:36:09 +0000 (12:36 +0100)]
radeon: don't check the same miptree many times when looking for matching miptrees

14 years agoradeon: add some debugging info
Maciej Cencora [Sun, 29 Nov 2009 11:27:29 +0000 (12:27 +0100)]
radeon: add some debugging info

14 years agonv50: update linkage on rasterizer change
Christoph Bumiller [Sat, 28 Nov 2009 12:57:38 +0000 (13:57 +0100)]
nv50: update linkage on rasterizer change

We need to update VP_RESULT_MAP and/or COORD_REPLACE_MAP
when light_twoside and/or point_sprite are changed.

14 years agonv50: match VP outputs to FP inputs ourselves
Christoph Bumiller [Sun, 29 Nov 2009 12:33:16 +0000 (13:33 +0100)]
nv50: match VP outputs to FP inputs ourselves

For each FP input, don't assume that the VP output will be
at the same position, but scan the semantics instead, then
put the correct output reg indices into VP_RESULT_MAP.

Position is still assumed to be the first output/input.

See 07fafc7c9346aa260829603bf3188596481e9e62, which renders
previous assumptions incorrect.

14 years agonv50: don't permanently negate src in emit_ddy
Christoph Bumiller [Thu, 26 Nov 2009 16:03:00 +0000 (17:03 +0100)]
nv50: don't permanently negate src in emit_ddy

14 years agoi965g: remove surface from views list before freeing
Dave Airlie [Sun, 29 Nov 2009 08:59:19 +0000 (18:59 +1000)]
i965g: remove surface from views list before freeing

this fixes a crash with the xorg state tracker, however it then locks
up the GPU once rendering is enabled but at least it doesn't crash.

Signed-off-by: Dave Airlie <airlied@linux.ie>
14 years agomesa: Fix array out-of-bounds access by _mesa_TexGenf.
Vinson Lee [Sun, 29 Nov 2009 05:50:48 +0000 (00:50 -0500)]
mesa: Fix array out-of-bounds access by _mesa_TexGenf.

_mesa_TexGenf calls _mesa_TexGenfv, which uses the params argument
as an array.

14 years agomesa: Fix array out-of-bounds access by _mesa_TexGeni.
Vinson Lee [Sun, 29 Nov 2009 04:47:23 +0000 (23:47 -0500)]
mesa: Fix array out-of-bounds access by _mesa_TexGeni.

_mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument
as an array.

14 years agodri: Fix potential null pointer dereference in driBindContext.
Vinson Lee [Sun, 29 Nov 2009 04:22:31 +0000 (23:22 -0500)]
dri: Fix potential null pointer dereference in driBindContext.

14 years agomesa: Fix array out-of-bounds access in _mesa_TexEnvf.
Vinson Lee [Sun, 29 Nov 2009 03:04:06 +0000 (22:04 -0500)]
mesa: Fix array out-of-bounds access in _mesa_TexEnvf.

_mesa_TexEnvf calls _mesa_TexEnvfv, which uses the param argument
as an array.

14 years agoradeon: need to flush cs when moving images between mipmap trees
Maciej Cencora [Sat, 28 Nov 2009 20:31:24 +0000 (21:31 +0100)]
radeon: need to flush cs when moving images between mipmap trees

14 years agoutil: Fix bad code.
Corbin Simpson [Sat, 28 Nov 2009 18:45:17 +0000 (10:45 -0800)]
util: Fix bad code.

Uf. How embarrassing.

14 years agoutil: Improve bitcount.
Corbin Simpson [Sat, 28 Nov 2009 18:13:51 +0000 (10:13 -0800)]
util: Improve bitcount.

Sorry for not pushing this before, it got lost in stashes.

14 years agoi965g: link xorg state tracker with -ldrm_intel
Dave Airlie [Sat, 28 Nov 2009 07:44:28 +0000 (17:44 +1000)]
i965g: link xorg state tracker with -ldrm_intel

14 years agonv50: do conversion of last insn to 64 bit format first
Christoph Bumiller [Fri, 27 Nov 2009 20:29:38 +0000 (21:29 +0100)]
nv50: do conversion of last insn to 64 bit format first

Simplifies things since the second to last one will then
be converted in the subsequent pass that ensures alignment
automatically.

14 years agonv50: bswap32 the polygon stipple pattern
Christoph Bumiller [Thu, 26 Nov 2009 15:59:39 +0000 (16:59 +0100)]
nv50: bswap32 the polygon stipple pattern

The hardware wants the pattern the same way it is
passed to glPolygonStipple.

14 years agogallium/util: added util_bswap32()
Christoph Bumiller [Thu, 26 Nov 2009 15:58:59 +0000 (16:58 +0100)]
gallium/util: added util_bswap32()

14 years agoscons: Promote pointer arithmetic to error.
José Fonseca [Fri, 27 Nov 2009 16:01:36 +0000 (16:01 +0000)]
scons: Promote pointer arithmetic to error.

All code covered by scons is being built on multiple OSes, so pointer
arithmetic must really be addressed when spotted.

14 years agoconfigs: Warn about pointer arithmetic.
José Fonseca [Fri, 27 Nov 2009 16:01:11 +0000 (16:01 +0000)]
configs: Warn about pointer arithmetic.

It's not portable. Warn to help catching it early.

14 years agomesa: Avoid void pointer arithmetic.
José Fonseca [Fri, 27 Nov 2009 15:58:02 +0000 (15:58 +0000)]
mesa: Avoid void pointer arithmetic.

14 years agosvga: fix for not using texture width/height/depth arrays
Roland Scheidegger [Fri, 27 Nov 2009 16:41:42 +0000 (17:41 +0100)]
svga: fix for not using texture width/height/depth arrays

14 years agor300g,llvmpipe: fix some more merge problems
Roland Scheidegger [Fri, 27 Nov 2009 16:40:24 +0000 (17:40 +0100)]
r300g,llvmpipe: fix some more merge problems

14 years agoMerge branch 'width0'
Roland Scheidegger [Fri, 27 Nov 2009 16:15:47 +0000 (17:15 +0100)]
Merge branch 'width0'

Conflicts:
src/gallium/drivers/r300/r300_texture.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/mesa/state_tracker/st_cb_texture.c

14 years agost/xorg: proper fix for compositing after rounding up
Keith Whitwell [Fri, 27 Nov 2009 15:28:46 +0000 (15:28 +0000)]
st/xorg: proper fix for compositing after rounding up

Basically don't round up shared textures.  This fixes compiz,
but I'm afraid that rounding up texture sizes here in the driver
is doomed, as it will inevitably break texture wrap modes.

14 years agorbug: Mention where the GUI can be found.
José Fonseca [Fri, 27 Nov 2009 14:55:20 +0000 (14:55 +0000)]
rbug: Mention where the GUI can be found.

14 years agosvga: Re-add shader dumping.
José Fonseca [Fri, 27 Nov 2009 13:59:37 +0000 (13:59 +0000)]
svga: Re-add shader dumping.

14 years agoRevert "st/xorg: fix composite after texture size changes"
Keith Whitwell [Fri, 27 Nov 2009 14:03:10 +0000 (14:03 +0000)]
Revert "st/xorg: fix composite after texture size changes"

This reverts commit 124ae596806f1a77af46f1f0e446d448da6e953a.

Pushed by mistake

14 years agost/xorg: fix composite after texture size changes
Keith Whitwell [Fri, 27 Nov 2009 13:59:00 +0000 (13:59 +0000)]
st/xorg: fix composite after texture size changes

14 years agowgl: Fix copy'n'paste typo in comment.
José Fonseca [Wed, 11 Nov 2009 00:56:43 +0000 (16:56 -0800)]
wgl: Fix copy'n'paste typo in comment.

14 years agosvga: Handle comment tokens when dumping.
José Fonseca [Sun, 15 Nov 2009 20:14:03 +0000 (12:14 -0800)]
svga: Handle comment tokens when dumping.

14 years agosvga: Use consistent names for public symbol names of shader dumping facilities.
José Fonseca [Tue, 24 Nov 2009 14:43:30 +0000 (14:43 +0000)]
svga: Use consistent names for public symbol names of shader dumping facilities.

14 years agosvga: Use consistent file names for dumping facilities.
José Fonseca [Tue, 24 Nov 2009 14:37:45 +0000 (14:37 +0000)]
svga: Use consistent file names for dumping facilities.

14 years agost/xorg: speculatively round textures up to nearest POT
Keith Whitwell [Fri, 27 Nov 2009 12:24:42 +0000 (12:24 +0000)]
st/xorg: speculatively round textures up to nearest POT

I'm not sure if this is a great change, but helps with caching.
Probably we want to turn this on/off on a driver-by-driver basis.

14 years agost/xorg: free last fence
Keith Whitwell [Fri, 27 Nov 2009 12:22:43 +0000 (12:22 +0000)]
st/xorg: free last fence

14 years agosvga: flush our command buffer after the 8th distinct render target
Keith Whitwell [Fri, 27 Nov 2009 12:19:28 +0000 (12:19 +0000)]
svga: flush our command buffer after the 8th distinct render target

This helps improve the surface cache behaviour in the face of the
large number of single-use render targets generated by EXA and the xorg
state tracker.  Without this we can reference hundreds of individual
render targets from a command buffer, which leaves little scope for
sharing or reuse of those targets.

Flushing early means we can start reusing textures much sooner.

This shouldn't have much effect on normal 3d rendering as it's pretty
rare to have a command buffer with >8 different render targets in that
world.