From 50d3fe8723d49b9e9fd2c037eeef1edbce1c8555 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 4 Dec 2012 21:06:36 -0500 Subject: [PATCH] r300/compiler: Only destination registers should increment pixsize --- .../drivers/r300/compiler/r300_fragprog_emit.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/r300/compiler/r300_fragprog_emit.c b/src/gallium/drivers/r300/compiler/r300_fragprog_emit.c index 841d46f..e96a506 100644 --- a/src/gallium/drivers/r300/compiler/r300_fragprog_emit.c +++ b/src/gallium/drivers/r300/compiler/r300_fragprog_emit.c @@ -94,7 +94,6 @@ static unsigned int use_source(struct r300_fragment_program_code* code, struct r if (src.File == RC_FILE_CONSTANT) { return src.Index | (1 << 5); } else if (src.File == RC_FILE_TEMPORARY || src.File == RC_FILE_INPUT) { - use_temporary(code, src.Index); return src.Index & 0x1f; } @@ -452,8 +451,6 @@ static int emit_tex(struct r300_emit_state * emit, struct rc_instruction * inst) use_temporary(code, dest); } - use_temporary(code, inst->U.I.SrcReg[0].Index); - code->tex.inst[code->tex.length++] = ((inst->U.I.SrcReg[0].Index << R300_SRC_ADDR_SHIFT) & R300_SRC_ADDR_MASK) -- 1.7.3.4