ir_to_mesa: Fix swizzled writemasks with swapped component ordering.
authorEric Anholt <eric@anholt.net>
Tue, 20 Jul 2010 18:14:33 +0000 (11:14 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 20 Jul 2010 18:28:33 +0000 (11:28 -0700)
commit18ab797d3aff776833fac1bd0ea01a2750f377b1
tree90a7be77a103d293b02668e65eaf2ed5df266313
parentcd6764ed6ec5ae1a4bce636feaf9d4b18ff3ccf3
ir_to_mesa: Fix swizzled writemasks with swapped component ordering.

I hadn't noticed you could do this, but glsl1 tests caught it.  Fixes:
glsl1-Swizzled writemask
glsl1-Swizzled writemask (2)
glsl1-Swizzled writemask (rgba)
glsl1-Swizzled writemask (stpq)
src/mesa/shader/ir_to_mesa.cpp