summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-07-03 11:41:07 -0600
committerBrian <[email protected]>2007-07-03 11:41:07 -0600
commit327fb3857361f69cbdcbccfb006e31045c9c7e1b (patch)
treed2af3068626c900d941cac3c9ea3bcf1c3aa8bee /src
parent1d25d9e15f1147d1ba38a807c9ce2294d93478fd (diff)
add code for stpq, rgba writemasks in make_writemask(), bug 11404
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index 02260d3422e..f3a6d04428f 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -1261,15 +1261,23 @@ make_writemask(const char *field)
while (*field) {
switch (*field) {
case 'x':
+ case 's':
+ case 'r':
mask |= WRITEMASK_X;
break;
case 'y':
+ case 't':
+ case 'g':
mask |= WRITEMASK_Y;
break;
case 'z':
+ case 'p':
+ case 'b':
mask |= WRITEMASK_Z;
break;
case 'w':
+ case 'q':
+ case 'a':
mask |= WRITEMASK_W;
break;
default: