summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300
diff options
context:
space:
mode:
authorTom Stellard <tstellar@gmail.com>2010-09-06 15:31:07 -0700
committerTom Stellard <tstellar@gmail.com>2010-09-10 18:18:09 -0700
commit66b1e716fb2f36db98ce490dc6e58d5585c652ae (patch)
tree1182cb7b00ee15115d1794f22e66a4630cd6736c /src/mesa/drivers/dri/r300
parent564653b9f196b9bf91fe772fd1ca1e131ff33774 (diff)
r300/compiler: Fix copy propigation for some presub instructions
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_optimize.c2
1 files changed, 1 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 2bed2dd9c5..53efbba4c5 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c
@@ -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;
}