summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen6_scissor_state.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-04-22 16:00:14 -0700
committerEric Anholt <eric@anholt.net>2011-04-29 15:26:23 -0700
commita82a43e8d99e1715dd11c9c091b5ab734079b6a6 (patch)
treeb9ca18d44786050e0b579b91728f94c9ac859df7 /src/mesa/drivers/dri/i965/gen6_scissor_state.c
parent855f56ca13c1003396a81da1a110357d624a2101 (diff)
downloadexternal_mesa3d-a82a43e8d99e1715dd11c9c091b5ab734079b6a6.zip
external_mesa3d-a82a43e8d99e1715dd11c9c091b5ab734079b6a6.tar.gz
external_mesa3d-a82a43e8d99e1715dd11c9c091b5ab734079b6a6.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen6_scissor_state.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen6_scissor_state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_scissor_state.c b/src/mesa/drivers/dri/i965/gen6_scissor_state.c
index d0b37a0..fad3ca0 100644
--- a/src/mesa/drivers/dri/i965/gen6_scissor_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_scissor_state.c
@@ -79,8 +79,7 @@ gen6_prepare_scissor_state(struct brw_context *brw)
BEGIN_BATCH(2);
OUT_BATCH(_3DSTATE_SCISSOR_STATE_POINTERS << 16 | (2 - 2));
- OUT_RELOC(intel->batch.bo, I915_GEM_DOMAIN_INSTRUCTION, 0,
- scissor_state_offset);
+ OUT_BATCH(scissor_state_offset);
ADVANCE_BATCH();
}