diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-07-03 11:41:21 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-07-03 11:41:21 -0600 |
commit | a36b5c6d4700a0eaa8c2430f1121babafe9294ed (patch) | |
tree | 49888b0f575c252c95f311f010f3dedd999c028c /src/mesa | |
parent | 3d04682b7a729ff4471528a57a6bdf64d235a43e (diff) |
add code for stpq, rgba writemasks in make_writemask(), bug 11404
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 8 |
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 02260d3422..f3a6d04428 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: |