i965: Upload as many VS constants as possible through the push constants.
authorEric Anholt <eric@anholt.net>
Mon, 18 Jan 2010 23:12:40 +0000 (15:12 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 19 Jan 2010 19:31:23 +0000 (11:31 -0800)
commitfb4901593c9495714d3f54920a28c271852e2112
tree697c6c525f9340f136459c93f06c823034fadc22
parent62a96f74c9a1fd07301d349e4181a7212fc7d45c
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).
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_vs.h
src/mesa/drivers/dri/i965/brw_vs_emit.c