r300/compiler: do not use copy propagation if SaturateMode is used
authorMarek Olšák <maraeo@gmail.com>
Tue, 28 Sep 2010 02:30:32 +0000 (04:30 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 28 Sep 2010 03:34:51 +0000 (05:34 +0200)
NOTE: This is a candidate for the 7.9 branch.

src/mesa/drivers/dri/r300/compiler/radeon_optimize.c

index e288930..3be50b9 100644 (file)
@@ -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));