summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-07-14 01:59:28 +0200
committerMarek Olšák <[email protected]>2010-07-14 02:01:03 +0200
commit9fa64ea67544d252c6713e21d3b9c17a2bbb0603 (patch)
tree16d1dc8609b981f21f1fb1d34b8c912c4e0384dd /src/mesa/drivers/dri/r300
parent20a3dda726c85239317972fb718d7358634a03b0 (diff)
r300/compiler: fix swizzling in the transformation of Abs modifiers
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
index d5b08dd9592..d347b4df9cd 100644
--- a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
+++ b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
@@ -518,10 +518,10 @@ static int transform_nonnative_modifiers(
new_inst->U.I.SrcReg[1] = inst->U.I.SrcReg[i];
new_inst->U.I.SrcReg[1].Negate ^= RC_MASK_XYZW;
+ memset(&inst->U.I.SrcReg[i], 0, sizeof(inst->U.I.SrcReg[i]));
inst->U.I.SrcReg[i].File = RC_FILE_TEMPORARY;
inst->U.I.SrcReg[i].Index = temp;
- inst->U.I.SrcReg[i].Negate = 0;
- inst->U.I.SrcReg[i].RelAddr = 0;
+ inst->U.I.SrcReg[i].Swizzle = RC_SWIZZLE_XYZW;
}
}
return 1;