glsl: fix another swizzle-related bug
authorBrian Paul <brianp@vmware.com>
Mon, 23 Feb 2009 20:10:55 +0000 (13:10 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 23 Feb 2009 21:05:34 +0000 (14:05 -0700)
commitd9881356a64b848dbae5fffd77fd93d0eb4247a3
treea53ba754939ba98fc9e8b7049f2bc731ad913e67
parent01c0c01a6d737d71a75cbd0de65c87c42b7ca230
glsl: fix another swizzle-related bug

This fixes the case of "infinitely" nested swizzles such as EXPR.wzyx.yxwz.xxyz
This doesn't appear in typical shaders but with function inlining and the
compiler's internal use of swizzles it can happen.
New glean glsl1 test case added for this.
src/mesa/shader/slang/slang_emit.c