i965/gen6: Use the dynamic state base address to reduce relocations.
authorEric Anholt <eric@anholt.net>
Fri, 22 Apr 2011 23:00:14 +0000 (16:00 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 29 Apr 2011 22:26:23 +0000 (15:26 -0700)
commita82a43e8d99e1715dd11c9c091b5ab734079b6a6
treeb9ca18d44786050e0b579b91728f94c9ac859df7
parent855f56ca13c1003396a81da1a110357d624a2101
i965/gen6: Use the dynamic state base address to reduce relocations.

Now that all the dynamic state is streamed through the top of the
batchbuffer, we can cut out many of our relocations to that state by
using the base address.

Improves 3DMMES taiji performance 3.3% +/- 0.4% (n=15).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c
src/mesa/drivers/dri/i965/gen6_cc.c
src/mesa/drivers/dri/i965/gen6_sampler_state.c
src/mesa/drivers/dri/i965/gen6_scissor_state.c
src/mesa/drivers/dri/i965/gen6_viewport_state.c
src/mesa/drivers/dri/i965/gen6_vs_state.c
src/mesa/drivers/dri/i965/gen6_wm_state.c