i965g: don't reference unused vars in RSQ
authorKeith Whitwell <keithw@vmware.com>
Tue, 1 Dec 2009 16:32:33 +0000 (16:32 +0000)
committerKeith Whitwell <keithw@vmware.com>
Tue, 1 Dec 2009 16:33:59 +0000 (16:33 +0000)
Probably overly pedantic

src/gallium/drivers/i965/brw_vs_emit.c

index 20cec0f59b47fcbd6414d14acf0e1d3c1124cee4..6d8366f8624931248981f6450bc3cfb67dd8415c 100644 (file)
@@ -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);