Implement RET opcode.
authorMichal Krol <michal@tungstengraphics.com>
Mon, 29 Oct 2007 11:45:42 +0000 (11:45 +0000)
committerMichal Krol <michal@tungstengraphics.com>
Mon, 29 Oct 2007 13:25:00 +0000 (13:25 +0000)
src/mesa/pipe/tgsi/exec/tgsi_sse2.c

index 46905236e2ef4f385d18f7e3951aa288d3d19d6c..b8edcf0a2e9035527d05f5f40f000a8c65660c01 100755 (executable)
@@ -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;
 }