i965/fs: Fix broken math on values loaded from uniform buffers on gen6.
authorEric Anholt <eric@anholt.net>
Thu, 21 Feb 2013 02:00:47 +0000 (18:00 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 22 Feb 2013 18:50:50 +0000 (10:50 -0800)
commit7b0731d940c758ca9c1e883cdea454d8787255c1
tree0b3fa470e02eded83b1adc6f2c7249ccf1652f20
parentcd01cc3b48fa093c9d31dcd2a9e4033d6d789840
i965/fs: Fix broken math on values loaded from uniform buffers on gen6.

In a debug build this led to assertion failures, but on a non-debug
build the hardware would just reference the whole vec8 instead of the
same channel 8 times.

Fixes the new piglit glsl-1.40/uniform-buffer/fs-exp2.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57121
Note: This is a candidate for the stable branches
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp