summaryrefslogtreecommitdiff
path: root/src/mesa/shader/program_parse.y
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-07-28 21:57:28 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-07-28 21:57:28 -0700
commit648dac4251de69d2949026af3dec0b0befee734b (patch)
treea4488f4c2b8d55e94e5cb29adfbae10590a00d46 /src/mesa/shader/program_parse.y
parent86b33b5649710f351d241ce6890200ac1f38f724 (diff)
ARB prog parser: Set component negation mask for SWZ instruction
Diffstat (limited to 'src/mesa/shader/program_parse.y')
-rw-r--r--src/mesa/shader/program_parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y
index 225dc0d5b9..6c50491ffc 100644
--- a/src/mesa/shader/program_parse.y
+++ b/src/mesa/shader/program_parse.y
@@ -463,6 +463,7 @@ SWZ_instruction: SWZ maskedDstReg ',' srcReg ',' extendedSwizzle
* FIXME: to the existing swizzle?
*/
$4.Base.Swizzle = $6.swizzle;
+ $4.Base.Negate = $6.mask;
$$ = asm_instruction_ctor(OPCODE_SWZ, & $2, & $4, NULL, NULL);
$$->Base.SaturateMode = $1.SaturateMode;