i965/fs: Switch to using sampler LD messages for uniform pull constants.
authorEric Anholt <eric@anholt.net>
Wed, 6 Mar 2013 22:47:22 +0000 (14:47 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 11 Mar 2013 19:11:53 +0000 (12:11 -0700)
commit4c1fdae0a01b3f92ec03b61aac1d3df500d51fc6
treed26e3e2ff4cc537cd3e2ca2fe0d94ec7cfcd5cdf
parent1323772543083dec23baf5a50222bdfc88ff6c3a
i965/fs: Switch to using sampler LD messages for uniform pull constants.

When forcing the compiler to always generate pull constants instead of
push constants (in order to have an easy to use testcase), improves
performance of my old GLSL demo 23.3553% +/- 1.42968% (n=7).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60866
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_emit.cpp