diff options
author | Eric Anholt <eric@anholt.net> | 2010-01-18 15:12:40 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-01-19 11:31:23 -0800 |
commit | fb4901593c9495714d3f54920a28c271852e2112 (patch) | |
tree | 697c6c525f9340f136459c93f06c823034fadc22 /src/mesa/drivers/dri/i965/brw_vs.h | |
parent | 62a96f74c9a1fd07301d349e4181a7212fc7d45c (diff) |
i965: Upload as many VS constants as possible through the push constants.
The pull constants require sending out to an overworked shared unit
and waiting for a response, while push constants are nicely loaded in
for us at thread dispatch time. By putting things we access in every
VS invocation there, ETQW performance improved by 2.5% +/- 1.6% (n=6).
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h index 249d48bc18..95e0501b1e 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.h +++ b/src/mesa/drivers/dri/i965/brw_vs.h @@ -51,6 +51,7 @@ struct brw_vs_compile { struct brw_compile func; struct brw_vs_prog_key key; struct brw_vs_prog_data prog_data; + int8_t constant_map[1024]; struct brw_vertex_program *vp; |