summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-12-01 16:32:33 +0000
committerKeith Whitwell <[email protected]>2009-12-01 16:33:59 +0000
commiteb68acaf6db689ba2fa62b188ff14507a7007266 (patch)
tree5118add46bc21cd5ff02b65da6788cbd543d5cc3 /src
parent759c094bf8fd0f104b738490d7f0b85f40fc2779 (diff)
i965g: don't reference unused vars in RSQ
Probably overly pedantic
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/i965/brw_vs_emit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_vs_emit.c b/src/gallium/drivers/i965/brw_vs_emit.c
index 20cec0f59b4..6d8366f8624 100644
--- a/src/gallium/drivers/i965/brw_vs_emit.c
+++ b/src/gallium/drivers/i965/brw_vs_emit.c
@@ -1462,7 +1462,8 @@ static void emit_insn(struct brw_vs_compile *c,
emit_math1(c, BRW_MATH_FUNCTION_INV, dst, args[0], BRW_MATH_PRECISION_FULL);
break;
case TGSI_OPCODE_RSQ:
- emit_math1(c, BRW_MATH_FUNCTION_RSQ, dst, args[0], BRW_MATH_PRECISION_FULL);
+ emit_math1(c, BRW_MATH_FUNCTION_RSQ, dst,
+ brw_swizzle(args[0], 0,0,0,0), BRW_MATH_PRECISION_FULL);
break;
case TGSI_OPCODE_SEQ:
emit_seq(p, dst, args[0], args[1]);
@@ -1618,7 +1619,7 @@ void brw_vs_emit(struct brw_vs_compile *c)
struct tgsi_parse_context parse;
struct tgsi_full_instruction *inst;
- if (BRW_DEBUG & DEBUG_VS)
+// if (BRW_DEBUG & DEBUG_VS)
tgsi_dump(c->vp->tokens, 0);
c->stack_index = brw_indirect(0, 0);