From: Michal Krol Date: Mon, 29 Oct 2007 11:45:42 +0000 (+0000) Subject: Implement RET opcode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd922c6437fb2081082bb164bcb0304559f6d7c4;p=mesa.git Implement RET opcode. --- diff --git a/src/mesa/pipe/tgsi/exec/tgsi_sse2.c b/src/mesa/pipe/tgsi/exec/tgsi_sse2.c index 46905236e2e..b8edcf0a2e9 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; }