i965/vp: Use the sampler for pull constant loads on Gen7/7.5.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Aug 2014 05:49:55 +0000 (22:49 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Aug 2014 20:39:25 +0000 (13:39 -0700)
commit04f5b2f4e454d678f3f5ca1fb37ec160fac60207
tree26b324090335ee9dc63f0fe926333fcbb40c0174
parentf7e9756201bb97d845bb4a73ed71efacfbc24c87
i965/vp: Use the sampler for pull constant loads on Gen7/7.5.

This improves performance in Trine 2 at 1280x720 (windowed) on "Very
High" settings by 30% (in the interactive menu) to 45% (in the forest
by the giant frog) on Haswell GT3e.

It also now generates the same assembly on Gen7 as it does on Gen8,
which always used the sampler for both types.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_vp.cpp