st: don't unilaterally ABS the argument to RSQ
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 10 Dec 2008 15:41:48 +0000 (15:41 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 11 Dec 2008 14:02:10 +0000 (14:02 +0000)
src/mesa/state_tracker/st_mesa_to_tgsi.c

index 50e638df46b208ace6902e57612931782ac5fde8..33574ddf4092b0c67d2d21b485d164c688090909 100644 (file)
@@ -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;