From: Tobias Klausmann Date: Fri, 23 May 2014 01:02:16 +0000 (+0200) Subject: mesa/x86: fix a typos in SSE4.1 detection X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f50361cce79beb78119d835b7a52c0c790d74077;p=mesa.git mesa/x86: fix a typos in SSE4.1 detection Commit a2fb71e23 introduced 32-bit code for SSE4.1. Fix compilation, and make sure to check ecx for the SSE4.1 bit. [imirkin: switch sse4.1 to look at ecx] Reviewed-by: Ilia Mirkin --- diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c index 9c1233925bf..ac77c9d7743 100644 --- a/src/mesa/x86/common_x86.c +++ b/src/mesa/x86/common_x86.c @@ -258,8 +258,8 @@ _mesa_get_x86_features(void) _mesa_x86_cpu_features |= X86_FEATURE_XMM; if (cpu_features & X86_CPU_XMM2) _mesa_x86_cpu_features |= X86_FEATURE_XMM2; - if (cpu_features & x86_CPU_SSE4_1) - _mesa_x86_features |= X86_FEATURE_SSE4_1; + if (cpu_features_ecx & X86_CPU_SSE4_1) + _mesa_x86_cpu_features |= X86_FEATURE_SSE4_1; #endif /* query extended cpu features */