summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Bogusz <qboosh@pld-linux.org>2013-11-12 12:59:42 -0800
committerMatt Turner <mattst88@gmail.com>2013-11-12 12:59:42 -0800
commit8487dfbcd056eff066939dc253fcf361b391592a (patch)
tree72bcdd43bd738d966920d96c0cf2cb016ebe4ec9
parent741007311087be8a711cc9c76ec00e59a156c850 (diff)
Fix the SSSE3 CPUID detection.
SSSE3 is detected by bit 9 of ECX, but we were checking bit 9 of EDX which is APIC leading to SSSE3 routines being called on CPUs without SSSE3. Reviewed-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--pixman/pixman-x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pixman/pixman-x86.c b/pixman/pixman-x86.c
index 6527760..05297c4 100644
--- a/pixman/pixman-x86.c
+++ b/pixman/pixman-x86.c
@@ -170,7 +170,7 @@ detect_cpu_features (void)
features |= X86_SSE;
if (d & (1 << 26))
features |= X86_SSE2;
- if (d & (1 << 9))
+ if (c & (1 << 9))
features |= X86_SSSE3;
/* Check for AMD specific features */