[Pixman] [PATCH] fix SSSE3 detection in pixman 0.32.x

Jakub Bogusz qboosh at pld-linux.org
Tue Nov 12 08:57:14 PST 2013


The attached patch fixes SSSE3 detection, so that some routines
(including tests) don't crash on older chips having APIC (bit 9 in
cpuid info EDX) but no SSSE3 (bit 9 in cpuid info ECX).

(note: I'm not subscribed to the list)


-- 
Jakub Bogusz    http://qboosh.pl/
-------------- next part --------------
Fix SSSE3 detection (use SSSE3, not APIC flag).
--- pixman-0.32.0/pixman/pixman-x86.c.orig	2013-11-07 23:43:03.000000000 +0100
+++ pixman-0.32.0/pixman/pixman-x86.c	2013-11-11 09:18:08.030841057 +0100
@@ -170,7 +170,7 @@
 	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 */


More information about the Pixman mailing list