i965: Don't set the swizzle on an immediate value in the VS.
authorEric Anholt <eric@anholt.net>
Thu, 19 Aug 2010 04:18:23 +0000 (21:18 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 19 Aug 2010 04:31:56 +0000 (21:31 -0700)
commitbad29dc6dad7ed1bff46c67e61dab01f8d82b557
tree5a2488e1538d53aecb74e2bbc7ec10ed860437f5
parentaf2ef53a2701426d32382e861d8f238a449e9cd9
i965: Don't set the swizzle on an immediate value in the VS.

Fixes glsl-vs-if-nested (70.0 is not <= 70.000648 thanks to the
swizzle bits getting set).  Some safety checks are added to make sure
this doesn't happen again as we increase the usage of immediate values
in program generation.
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_vs_emit.c