mesa: fix a GLSL vector subscript/writemask bug
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 1 Jul 2008 23:59:07 +0000 (17:59 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 1 Jul 2008 23:59:07 +0000 (17:59 -0600)
commit028739faedd97a67b2348e4561840cc13785b26c
tree4014e4e6f4b6f69642b85b763e8e038e98d097d5
parente19af171cf013098c35990069225a87c3a04e197
mesa: fix a GLSL vector subscript/writemask bug

This fixes a failure for cases like:
   vec4 v;
   v[1] *= 2.0;

The v[1] actually acts like a writemask, equivalent to v.y
The fix is a bit convoluted, but will do for now.
src/mesa/shader/slang/slang_codegen.c