From: Brian Date: Tue, 3 Jul 2007 17:41:21 +0000 (-0600) Subject: add code for stpq, rgba writemasks in make_writemask(), bug 11404 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a36b5c6d4700a0eaa8c2430f1121babafe9294ed;p=mesa.git add code for stpq, rgba writemasks in make_writemask(), bug 11404 --- 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: