Mesa (i965g-restart): i965g: don't reference unused vars in RSQ

Keith Whitwell keithw at kemper.freedesktop.org
Tue Dec 1 08:52:47 PST 2009


Module: Mesa
Branch: i965g-restart
Commit: eb68acaf6db689ba2fa62b188ff14507a7007266
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb68acaf6db689ba2fa62b188ff14507a7007266

Author: Keith Whitwell <keithw at vmware.com>
Date:   Tue Dec  1 16:32:33 2009 +0000

i965g: don't reference unused vars in RSQ

Probably overly pedantic

---

 src/gallium/drivers/i965/brw_vs_emit.c |    5 +++--
 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 20cec0f..6d8366f 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);



More information about the mesa-commit mailing list