projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7410073
)
Fix the SSSE3 CPUID detection.
author
Jakub Bogusz
<qboosh@pld-linux.org>
Tue, 12 Nov 2013 20:59:42 +0000
(12:59 -0800)
committer
Matt 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
patch
|
blob
|
history
diff --git
a/pixman/pixman-x86.c
b/pixman/pixman-x86.c
index 652776021f7c6210a57d0d140579b69c1d52945a..05297c47603420b88b9707e7df8ded6cad43e54a 100644
(file)
--- 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 */