summaryrefslogtreecommitdiff
path: root/src/mesa/x86/common_x86.c
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2005-01-19 07:43:13 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2005-01-19 07:43:13 +0000
commit59c2e16e755c0cba78b27525681cd79456a2f496 (patch)
treea5e707c529ba5f44efb75d7fc37ed8ea89b625c1 /src/mesa/x86/common_x86.c
parentc47d19a1a2f42df3131d5e9e41cb2d4be2fbd417 (diff)
There is no point trying to detect SSE at all, when MESA_NO_SSE is defined. I am committing this because the current WIN32 SSE detection code crashes UnrealTournament2003.
Diffstat (limited to 'src/mesa/x86/common_x86.c')
-rw-r--r--src/mesa/x86/common_x86.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c
index d5b87e8156..79048a9f99 100644
--- a/src/mesa/x86/common_x86.c
+++ b/src/mesa/x86/common_x86.c
@@ -428,15 +428,17 @@ void _mesa_init_all_x86_transform_asm( void )
#endif
#ifdef USE_SSE_ASM
- if ( cpu_has_xmm && _mesa_getenv( "MESA_FORCE_SSE" ) == 0 ) {
- check_os_sse_support();
- }
if ( cpu_has_xmm ) {
- if (_mesa_getenv( "MESA_NO_SSE" ) == 0 ) {
+ if ( _mesa_getenv( "MESA_NO_SSE" ) == 0 ) {
message( "SSE cpu detected.\n" );
- _mesa_init_sse_transform_asm();
+ if ( _mesa_getenv( "MESA_FORCE_SSE" ) == 0 ) {
+ check_os_sse_support();
+ }
+ if ( cpu_has_xmm ) {
+ _mesa_init_sse_transform_asm();
+ }
} else {
- message( "SSE cpu detected, but switched off by user.\n" );
+ message( "SSE cpu detected, but switched off by user.\n" );
_mesa_x86_cpu_features &= ~(X86_FEATURE_XMM);
}
}