diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-26 07:38:31 -0700 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-26 07:38:31 -0700 |
commit | 6e96bd70e56f6ba4ff444c584376475a136bca26 (patch) | |
tree | 46b1a7d0a91d00a5da30bfcf1f0440f7fe0271de | |
parent | 277089b81ae498f598efdc74fafda9873864ee54 (diff) |
Revert "tgsi: Implement OPCODE_ROUND for SSE2 backend."
This reverts commit 685fd2c035e284db2447ede0f6da278adaa70a0d.
Does not compile since emit_rnd() is trying to pass 4 params to
emit_func_call_dst() which takes 3 params.
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_sse2.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_sse2.c b/src/gallium/auxiliary/tgsi/tgsi_sse2.c index 752c7c3c31..4bda756dbc 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_sse2.c +++ b/src/gallium/auxiliary/tgsi/tgsi_sse2.c @@ -842,29 +842,6 @@ emit_rcp ( make_xmm( xmm_src ) ); } -static void PIPE_CDECL -rnd4f( - float *store ) -{ - store[0] = floorf( store[0] + 0.5f ); - store[1] = floorf( store[1] + 0.5f ); - store[2] = floorf( store[2] + 0.5f ); - store[3] = floorf( store[3] + 0.5f ); -} - -static void -emit_rnd( - struct x86_function *func, - unsigned xmm_save, - unsigned xmm_dst ) -{ - emit_func_call_dst( - func, - xmm_save, - xmm_dst, - rnd4f ); -} - static void emit_rsqrt( struct x86_function *func, @@ -1662,11 +1639,7 @@ emit_instruction( break; case TGSI_OPCODE_ROUND: - FOR_EACH_DST0_ENABLED_CHANNEL( *inst, chan_index ) { - FETCH( func, *inst, 0, 0, chan_index ); - emit_rnd( func, 0, 0 ); - STORE( func, *inst, 0, 0, chan_index ); - } + return 0; break; case TGSI_OPCODE_EXPBASE2: |