summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2010-09-07 10:22:16 -0700
committerTom Stellard <[email protected]>2010-09-10 18:18:09 -0700
commite3fc210a4f93c41cd3d1601dd1c937388f117d97 (patch)
tree0f0abfd0e5a59c6dbb6dd330d62bcfb91a3d02e6 /src/mesa/drivers
parentd442c7f172df72875bc4a4c8e20ddd8c49dee12a (diff)
r300/compiler: Fix dataflow bug in presub_helper()
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_optimize.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c b/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c
index 53efbba4c56..88aac949a10 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c
@@ -590,6 +590,8 @@ static int presub_helper(
if (inst->U.I.DstReg.WriteMask &
src_reads_dst_mask(s->Inst->U.I.SrcReg[1],
inst->U.I.DstReg)
+ || src_reads_dst_mask(s->Inst->U.I.SrcReg[0],
+ inst->U.I.DstReg)
|| info->IsFlowControl) {
cant_sub = 1;
}