tgsi: Use ESI instead of EBX as temp reg on non-win32
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 31 Jan 2008 11:57:15 +0000 (11:57 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 31 Jan 2008 11:57:49 +0000 (11:57 +0000)
src/mesa/pipe/tgsi/exec/tgsi_sse2.c

index f8660e7..df0c698 100755 (executable)
@@ -198,9 +198,15 @@ get_output_base( void )
 static struct x86_reg
 get_temp_base( void )
 {
+#ifdef WIN32
    return x86_make_reg(
       file_REG32,
       reg_BX );
+#else
+   return x86_make_reg(
+      file_REG32,
+      reg_SI );
+#endif
 }
 
 static struct x86_reg