From: Keith Whitwell Date: Fri, 15 Feb 2008 08:56:04 +0000 (+0000) Subject: tgsi: disable dummy sse2 texture code X-Git-Tag: android-x86-1.6~16^2~1465^2~390^2~2620 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fa9c160389ffc6d7a20773b77c937193f30339d8;p=android-x86%2Fexternal-mesa.git tgsi: disable dummy sse2 texture code --- 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;