summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-12-10 15:41:48 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2008-12-11 14:02:10 +0000
commit8355568abdb3d326f640901c86b3a3d7e9fd3d3a (patch)
tree894ca6651419b775dfdc1b5f655377dd1f12309f
parent5c845b911596e72a9fdbc566ee06b1d7dc8afb7c (diff)
st: don't unilaterally ABS the argument to RSQ
-rw-r--r--src/mesa/state_tracker/st_mesa_to_tgsi.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c
index 50e638df46..33574ddf40 100644
--- a/src/mesa/state_tracker/st_mesa_to_tgsi.c
+++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c
@@ -463,9 +463,15 @@ compile_instruction(
break;
case OPCODE_RSQ:
fullinst->Instruction.Opcode = TGSI_OPCODE_RSQ;
- tgsi_util_set_full_src_register_sign_mode(
- &fullinst->FullSrcRegisters[0],
- TGSI_UTIL_SIGN_CLEAR );
+
+ /* KW: Don't do this here. If particular hardware needs to do
+ * this, can do so in the driver..
+ */
+#if 0
+ tgsi_util_set_full_src_register_sign_mode(
+ &fullinst->FullSrcRegisters[0],
+ TGSI_UTIL_SIGN_CLEAR );
+#endif
break;
case OPCODE_SCS:
fullinst->Instruction.Opcode = TGSI_OPCODE_SCS;