From 59c2e16e755c0cba78b27525681cd79456a2f496 Mon Sep 17 00:00:00 2001 From: Daniel Borca Date: Wed, 19 Jan 2005 07:43:13 +0000 Subject: 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. --- src/mesa/x86/common_x86.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src') 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); } } -- cgit v1.2.3