31 lines
856 B
Diff
31 lines
856 B
Diff
From 8487dfbcd056eff066939dc253fcf361b391592a Mon Sep 17 00:00:00 2001
|
|
From: Jakub Bogusz <qboosh@pld-linux.org>
|
|
Date: Tue, 12 Nov 2013 12:59:42 -0800
|
|
Subject: [PATCH] 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>
|
|
---
|
|
pixman/pixman-x86.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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 */
|
|
--
|
|
1.8.3.1
|
|
|