From: Marek Olšák Date: Tue, 28 Sep 2010 02:30:32 +0000 (+0200) Subject: r300/compiler: do not use copy propagation if SaturateMode is used X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2ea7ffb0a9368571bb62038aeb318307afedb40;p=mesa.git r300/compiler: do not use copy propagation if SaturateMode is used NOTE: This is a candidate for the 7.9 branch. --- diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c b/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c index e2889302e69..3be50b93e4b 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c +++ b/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c @@ -163,7 +163,8 @@ static void copy_propagate(struct radeon_compiler * c, struct rc_instruction * i if (inst_mov->U.I.DstReg.File != RC_FILE_TEMPORARY || inst_mov->U.I.DstReg.RelAddr || - inst_mov->U.I.WriteALUResult) + inst_mov->U.I.WriteALUResult || + inst_mov->U.I.SaturateMode) return; memset(&s, 0, sizeof(s));