tgsi: disable dummy sse2 texture code
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 15 Feb 2008 08:56:04 +0000 (08:56 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 15 Feb 2008 08:56:04 +0000 (08:56 +0000)
src/mesa/pipe/tgsi/exec/tgsi_sse2.c

index 1d9e9a14ce02c1a971faf259b3bb832afe73d9bd..6df7588c925aeb479efa8c9b49713306b536b1af 100755 (executable)
@@ -1935,13 +1935,20 @@ emit_instruction(
       break;
 
    case TGSI_OPCODE_TEX:
-      emit_tempf(
-         func,
-         0,
-         TGSI_EXEC_TEMP_ONE_I,
-         TGSI_EXEC_TEMP_ONE_C );
-      FOR_EACH_DST0_ENABLED_CHANNEL( *inst, chan_index ) {
-         STORE( func, *inst, 0, 0, chan_index );
+      if (0) {
+        /* Disable dummy texture code: 
+         */
+        emit_tempf(
+           func,
+           0,
+           TGSI_EXEC_TEMP_ONE_I,
+           TGSI_EXEC_TEMP_ONE_C );
+        FOR_EACH_DST0_ENABLED_CHANNEL( *inst, chan_index ) {
+           STORE( func, *inst, 0, 0, chan_index );
+        }
+      }
+      else {
+        return 0;
       }
       break;