From 876b806ec09d5ff0c6cd19df91006c4eefedfaa6 Mon Sep 17 00:00:00 2001 From: Soren Sandmann Pedersen Date: Tue, 6 Feb 2007 17:16:23 -0500 Subject: [PATCH] Reapply patch to fix AMD CPU detection --- fb/fbpict.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fb/fbpict.c b/fb/fbpict.c index 28503c0cf..3ff609f77 100644 --- a/fb/fbpict.c +++ b/fb/fbpict.c @@ -1516,7 +1516,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 */ unsigned int result;