From bd922c6437fb2081082bb164bcb0304559f6d7c4 Mon Sep 17 00:00:00 2001 From: Michal Krol Date: Mon, 29 Oct 2007 11:45:42 +0000 Subject: Implement RET opcode. --- src/mesa/pipe/tgsi/exec/tgsi_sse2.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/pipe/tgsi/exec/tgsi_sse2.c b/src/mesa/pipe/tgsi/exec/tgsi_sse2.c index 46905236e2..b8edcf0a2e 100755 --- a/src/mesa/pipe/tgsi/exec/tgsi_sse2.c +++ b/src/mesa/pipe/tgsi/exec/tgsi_sse2.c @@ -1539,7 +1539,11 @@ emit_instruction( break; case TGSI_OPCODE_RET: - assert( 0 ); +#ifdef WIN32 + x86_retw( func, 16 ); +#else + x86_ret( func ); +#endif break; case TGSI_OPCODE_SSG: @@ -1818,12 +1822,6 @@ tgsi_emit_sse2( tgsi_parse_free( &parse ); -#ifdef WIN32 - x86_retw( func, 16 ); -#else - x86_ret( func ); -#endif - return 1; } @@ -1896,11 +1894,5 @@ tgsi_emit_sse2_fs( tgsi_parse_free( &parse ); -#ifdef WIN32 - x86_retw( func, 16 ); -#else - x86_ret( func ); -#endif - return 1; } -- cgit v1.2.3