diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-09-28 04:30:32 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-09-28 05:34:51 +0200 |
commit | c2ea7ffb0a9368571bb62038aeb318307afedb40 (patch) | |
tree | 91b92c48fd53a545fc2ff13ce647aa73b61409f4 /src/mesa/drivers/dri/r300/compiler/radeon_optimize.c | |
parent | 6f747567ec775f37d43b35d957e72334c511e8bc (diff) |
r300/compiler: do not use copy propagation if SaturateMode is used
NOTE: This is a candidate for the 7.9 branch.
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/radeon_optimize.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/radeon_optimize.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c b/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c index e2889302e6..3be50b93e4 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)); |