mesa: fix a GLSL vector subscript/writemask bug
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 2 Jul 2008 00:40:23 +0000 (18:40 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 2 Jul 2008 00:40:23 +0000 (18:40 -0600)
commit66b48202c221a25f3980df8f443ce63c2fb4119f
treecdeabcb747311c26bf0e736378476077c311a486
parenteeefe175de8bae93b9ed2204afa9e748b205e868
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.

cherry-picked from master
src/mesa/shader/slang/slang_codegen.c