diff options
author | Brian Paul <[email protected]> | 2002-06-11 01:26:58 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-06-11 01:26:58 +0000 |
commit | 35883ceb9389f9e5b4be8233f2326367c6aecddb (patch) | |
tree | 9bf611edc41f33119ce4f1152db50943a5f762d7 /src/mesa/x86/common_x86_asm.S | |
parent | 4fe2f3f1a01b3825a6d24f5694d705aee6911a3b (diff) |
Fix NASM problems, remove static var in SSE detection code. (Josh Vanderhoof)
Diffstat (limited to 'src/mesa/x86/common_x86_asm.S')
-rw-r--r-- | src/mesa/x86/common_x86_asm.S | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/mesa/x86/common_x86_asm.S b/src/mesa/x86/common_x86_asm.S index f142e7dfa6a..f877fd57c28 100644 --- a/src/mesa/x86/common_x86_asm.S +++ b/src/mesa/x86/common_x86_asm.S @@ -1,4 +1,4 @@ -/* $Id: common_x86_asm.S,v 1.9 2002/06/04 21:29:20 brianp Exp $ */ +/* $Id: common_x86_asm.S,v 1.10 2002/06/11 01:26:58 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -64,11 +64,6 @@ GLNAME( found_intel ): STRING( "Genuine Intel processor found\n\0" ) GLNAME( found_amd ): STRING( "Authentic AMD processor found\n\0" ) -#ifdef USE_SSE_ASM -GLNAME( sse_test_dummy ): - D_LONG 0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000 -#endif - SEG_TEXT @@ -202,7 +197,15 @@ GLNAME( _mesa_test_os_sse_exception_support ): LDMXCSR ( REGOFF( -8, EBP ) ) XORPS ( XMM0, XMM0 ) - MOVUPS ( CONTENT( GLNAME( sse_test_dummy ) ), XMM1 ) + + PUSH_L ( CONST( 0x3f800000 ) ) + PUSH_L ( CONST( 0x3f800000 ) ) + PUSH_L ( CONST( 0x3f800000 ) ) + PUSH_L ( CONST( 0x3f800000 ) ) + + MOVUPS ( REGIND( ESP ), XMM1 ) + + ADD_L ( CONST( 32 ), ESP ) DIVPS ( XMM0, XMM1 ) |