r300/compiler: Fix copy propigation for some presub instructions
authorTom Stellard <tstellar@gmail.com>
Mon, 6 Sep 2010 22:31:07 +0000 (15:31 -0700)
committerTom Stellard <tstellar@gmail.com>
Sat, 11 Sep 2010 01:18:09 +0000 (18:18 -0700)
src/mesa/drivers/dri/r300/compiler/radeon_optimize.c

index 2bed2dd9c5f293dd2e9afa94b6f8d4ecaab4d8e3..53efbba4c5668cf95757ea89a61fe56a4c96e30a 100644 (file)
@@ -191,7 +191,7 @@ static void copy_propagate(struct radeon_compiler * c, struct rc_instruction * i
 
                /* It is possible to do copy propigation in this situation,
                 * just not right now, see peephole_add_presub_inv() */
-               if (inst->U.I.PreSub.Opcode != RC_PRESUB_NONE &&
+               if (inst_mov->U.I.PreSub.Opcode != RC_PRESUB_NONE &&
                                                info->NumSrcRegs > 2) {
                        return;
                }