From: Tom Stellard Date: Tue, 7 Sep 2010 17:22:16 +0000 (-0700) Subject: r300/compiler: Fix dataflow bug in presub_helper() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3fc210a4f93c41cd3d1601dd1c937388f117d97;p=mesa.git r300/compiler: Fix dataflow bug in presub_helper() --- 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; }