diff options
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/radeon_optimize.c | 2 |
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; } |