OSDN Git Service

i965/vs: Use the sampler for VS pull constant loading on Ivybridge.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Jan 2012 13:38:28 +0000 (05:38 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 27 Jan 2012 07:53:54 +0000 (23:53 -0800)
commit259b65e2e7938de4aab323033cfe2b33369ddb07
treef17f30afbf2c3d5c7d1c3aab17cc0ae72be74d73
parent5f4575d42fdaaf671d4b3cdcf2c733ad9d35d339
i965/vs: Use the sampler for VS pull constant loading on Ivybridge.

Substantially increases performance in GLBenchmark PRO:
- 320x240   => 3.28x
- 1920x1080 => 1.47x
- 2560x1440 => 1.27x

The LD message ignores the sampler unit index and SAMPLER_STATE pointer,
instead relying on hard-wired default state.  Thus, there's no need to
worry about running out of sampler units or providing SAMPLER_STATE;
this small patch should be all that's required.

NOTE: This is a candidate for release branches.
      (It requires the preceding commit to compile.)

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp