Fix the SSSE3 CPUID detection.
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 12 Nov 2013 20:59:42 +0000 (12:59 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 12 Nov 2013 20:59:42 +0000 (12:59 -0800)
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>
pixman/pixman-x86.c

index 652776021f7c6210a57d0d140579b69c1d52945a..05297c47603420b88b9707e7df8ded6cad43e54a 100644 (file)
@@ -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 */