projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d04682
)
add code for stpq, rgba writemasks in make_writemask(), bug 11404
author
Brian
<brian.paul@tungstengraphics.com>
Tue, 3 Jul 2007 17:41:21 +0000
(11:41 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Tue, 3 Jul 2007 17:41:21 +0000
(11:41 -0600)
src/mesa/shader/slang/slang_codegen.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_codegen.c
b/src/mesa/shader/slang/slang_codegen.c
index 02260d3422e516713d449f22a1f27dc6368401bd..f3a6d04428f6c4539e353e412ec6752452cc83be 100644
(file)
--- 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: