i965/fs: Use LD messages for pre-gen7 varying-index uniform loads
authorEric Anholt <eric@anholt.net>
Mon, 18 Mar 2013 17:16:42 +0000 (10:16 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 1 Apr 2013 23:17:26 +0000 (16:17 -0700)
commit70b27e0e4b5d15e575ea477d63c0f6cb19d645c2
tree802df334fa4aa36763c8c791fdc9399059511d8a
parentce316f62efa208b1a43fe81831126fc75c5807c5
i965/fs: Use LD messages for pre-gen7 varying-index uniform loads

This comes at a minor performance cost at the moment (-3.2% +/- 0.2%, n=14 on
my GM45 forced to load all uniforms through the varying-index path), but we
get a whole vec4 at a time to reuse in the next commit.

v2: Fix comment about channels in the other message.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
NOTE: This is a candidate for the 9.1 branch.
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_cse.cpp
src/mesa/drivers/dri/i965/brw_fs_emit.cpp