From 908469b5fcdc311a89868ab44baa85d0744985d1 Mon Sep 17 00:00:00 2001 From: Soren Sandmann Pedersen Date: Tue, 6 Feb 2007 16:37:45 -0500 Subject: [PATCH] Apply patch from Marco Gritti and Jordan Crouse to correctly detect AMD CPU's. Bug 9615. --- pixman/src/fbpict.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pixman/src/fbpict.c b/pixman/src/fbpict.c index 63b1cbcf0..0bd989fe0 100644 --- a/pixman/src/fbpict.c +++ b/pixman/src/fbpict.c @@ -2123,7 +2123,9 @@ static unsigned int detectCPUFeatures(void) { features |= SSE; if (result & (1 << 26)) features |= SSE2; - if ((result & MMX) && !(result & SSE) && (strcmp(vendor, "AuthenticAMD") == 0)) { + if ((features & MMX) && !(features & SSE) && + (strcmp(vendor, "AuthenticAMD") == 0 || + strcmp(vendor, "Geode by NSC") == 0)) { /* check for AMD MMX extensions */ #ifdef __GNUC__