Mesa (gallium-0.1): st: don't unilaterally ABS the argument to RSQ

Keith Whitwell keithw at kemper.freedesktop.org
Fri Dec 12 17:43:27 UTC 2008


Module: Mesa
Branch: gallium-0.1
Commit: 8355568abdb3d326f640901c86b3a3d7e9fd3d3a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8355568abdb3d326f640901c86b3a3d7e9fd3d3a

Author: Keith Whitwell <keith at tungstengraphics.com>
Date:   Wed Dec 10 15:41:48 2008 +0000

st: don't unilaterally ABS the argument to RSQ

---

 src/mesa/state_tracker/st_mesa_to_tgsi.c |   12 +++++++++---
 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 50e638d..33574dd 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;




More information about the mesa-commit mailing list