diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-03-07 16:43:45 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-03-09 10:18:29 -0800 |
commit | ea004a3aed89ec02bb5f2356479cd038d41f73c1 (patch) | |
tree | 0e248affda5d7eb86411b5ecb4d987d95eca245a /src/mesa/drivers/dri/i965/brw_context.h | |
parent | caaa7fdd6f8bb6f38bf555de79bd3cfd7ac9c715 (diff) |
i965: Pack the tracked state atoms into separate arrays for prepare/emit.
Improves performance of a hacked-up scissor-many (to reuse a small set
of scissors instead of blowing out the cache, and then to run 100x
more iterations so it actually took some time) by 3.6% +/- 1.2% (n=10)
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 26a6388f34..7b0551a92b 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -701,6 +701,9 @@ struct brw_context /* Used to give every program string a unique id */ GLuint program_id; + + int num_prepare_atoms, num_emit_atoms; + struct brw_tracked_state prepare_atoms[64], emit_atoms[64]; }; |