summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/tgsi/exec/tgsi_sse2.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-02-15 08:56:04 +0000
committerKeith Whitwell <[email protected]>2008-02-15 08:56:04 +0000
commitfa9c160389ffc6d7a20773b77c937193f30339d8 (patch)
tree3e3f8d6c2446521a55a01eccfcf680dbc1c0bcc6 /src/mesa/pipe/tgsi/exec/tgsi_sse2.c
parent18e94e15c0ca881309ac5784075a04160cc1eeb6 (diff)
tgsi: disable dummy sse2 texture code
Diffstat (limited to 'src/mesa/pipe/tgsi/exec/tgsi_sse2.c')
-rwxr-xr-xsrc/mesa/pipe/tgsi/exec/tgsi_sse2.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_sse2.c b/src/mesa/pipe/tgsi/exec/tgsi_sse2.c
index 1d9e9a14ce0..6df7588c925 100755
--- a/src/mesa/pipe/tgsi/exec/tgsi_sse2.c
+++ b/src/mesa/pipe/tgsi/exec/tgsi_sse2.c
@@ -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;