summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-01-31 11:57:15 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2008-01-31 11:57:49 +0000
commite82c9b867cc18af5da7375871a685f98d1c1527d (patch)
tree031aefbe7710c4bb385fce74b9482dda5bf322c7 /src/mesa
parent50d5f304ad9eba8fe95a6cedfc56cd7213b33fea (diff)
tgsi: Use ESI instead of EBX as temp reg on non-win32
Diffstat (limited to 'src/mesa')
-rwxr-xr-xsrc/mesa/pipe/tgsi/exec/tgsi_sse2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_sse2.c b/src/mesa/pipe/tgsi/exec/tgsi_sse2.c
index f8660e7ad1..df0c698301 100755
--- a/src/mesa/pipe/tgsi/exec/tgsi_sse2.c
+++ b/src/mesa/pipe/tgsi/exec/tgsi_sse2.c
@@ -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