From 66b1e716fb2f36db98ce490dc6e58d5585c652ae Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 6 Sep 2010 15:31:07 -0700 Subject: [PATCH] r300/compiler: Fix copy propigation for some presub instructions --- src/mesa/drivers/dri/r300/compiler/radeon_optimize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c b/src/mesa/drivers/dri/r300/compiler/radeon_optimize.c index 2bed2dd9c5f..53efbba4c56 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; } -- 2.30.2