i965: Fix swizzling in vector splitting for the new FS backend.
authorEric Anholt <eric@anholt.net>
Fri, 27 Aug 2010 19:00:29 +0000 (12:00 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 27 Aug 2010 19:02:15 +0000 (12:02 -0700)
commit0435cb348aaa8f2d8163a38517a098e27a81adef
tree95d36def29660f282b7864fc165073c1b9863993
parent83e3a2d97095d0ef062f210673eb23031fe1cb9a
i965: Fix swizzling in vector splitting for the new FS backend.

We weren't smearing a component of a split RHS out to reach an unsplit
LHS's writemask, so gl_FragColor (always unsplit) would often get
uninitialized values.

Fixes: glsl-algebraic-add-add-1 (and probably many others).
src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp