summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 d5b87e81565..79048a9f995 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);
}
}