[Mesa-dev] [PATCH 2/2] i965/vs: Use the sampler for VS pull constant loading on Ivybridge.
eric at anholt.net
Thu Jan 26 09:03:51 PST 2012
On Thu, 26 Jan 2012 08:32:08 -0800, Kenneth Graunke <kenneth at whitecape.org> wrote:
> 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.
This looks much nicer than the previous patchset :)
I do wonder about the args to ld, though. In 4x2 mode, it's "u v r
lod". get_pull_constant_offset is filling .x with the dword offset, and
.yzw are undefined. Is that what ld wants, or does it make use of v and
r (.y and .z)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
More information about the mesa-dev