SrcReg->Swizzle is always initialized to SWIZZLE_NOOP, and if the program
authorDave Airlie <airliedfreedesktop.org>
Wed, 19 Apr 2006 23:15:51 +0000 (23:15 +0000)
committerDave Airlie <airliedfreedesktop.org>
Wed, 19 Apr 2006 23:15:51 +0000 (23:15 +0000)
commitb5d76b68588c3be2a6b73f80e41a169716463644
tree09f60d70d33831331a26a550ddd4f8e1e474ee8c
parent6e542f11c9cc792123992446900df919d6ea1a83
SrcReg->Swizzle is always initialized to SWIZZLE_NOOP, and if the program
specifies a 2/3/4-compontent swizzle suffix, SrcReg->Swizzles is just ORed
against the new component values, without resetting it first.

Attached patch makes tests/vptest2 pass.

From Tilam Sauerbeck bug 6673
src/mesa/shader/nvvertparse.c