Mesa (master): r300/compiler: do not use copy propagation if SaturateMode is used
Marek Olšák
mareko at kemper.freedesktop.org
Tue Sep 28 03:35:19 UTC 2010
Module: Mesa
Branch: master
Commit: c2ea7ffb0a9368571bb62038aeb318307afedb40
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2ea7ffb0a9368571bb62038aeb318307afedb40
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Sep 28 04:30:32 2010 +0200
r300/compiler: do not use copy propagation if SaturateMode is used
NOTE: This is a candidate for the 7.9 branch.
---
.../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 e288930..3be50b9 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));
More information about the mesa-commit
mailing list