summaryrefslogtreecommitdiffstats
path: root/src/mesa/x86
diff options
context:
space:
mode:
authorTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>2014-05-23 03:02:16 +0200
committerIlia Mirkin <imirkin@alum.mit.edu>2014-05-22 21:10:08 -0400
commitf50361cce79beb78119d835b7a52c0c790d74077 (patch)
treea56eb79934cf0224f3512cd04685bf4eb030b48e /src/mesa/x86
parentcfec135de7f604ffe14f7a7a78157697911519ec (diff)
downloadexternal_mesa3d-f50361cce79beb78119d835b7a52c0c790d74077.zip
external_mesa3d-f50361cce79beb78119d835b7a52c0c790d74077.tar.gz
external_mesa3d-f50361cce79beb78119d835b7a52c0c790d74077.tar.bz2
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 <imirkin@alum.mit.edu>
Diffstat (limited to 'src/mesa/x86')
-rw-r--r--src/mesa/x86/common_x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c
index 9c12339..ac77c9d 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 */