[cairo-commit] pixman/src

Søren Sandmann Pedersen sandmann at kemper.freedesktop.org
Tue Feb 6 13:45:10 PST 2007


 pixman/src/fbpict.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

New commits:
diff-tree 908469b5fcdc311a89868ab44baa85d0744985d1 (from 9d3f537423b3cc0cb6a4b2607e9307c1eef9e074)
Author: Soren Sandmann Pedersen <ssp at dhcp83-218.boston.redhat.com>
Date:   Tue Feb 6 16:37:45 2007 -0500

    Apply patch from Marco Gritti and Jordan Crouse to correctly detect
    AMD CPU's. Bug 9615.

diff --git a/pixman/src/fbpict.c b/pixman/src/fbpict.c
index 63b1cbc..0bd989f 100644
--- a/pixman/src/fbpict.c
+++ b/pixman/src/fbpict.c
@@ -2123,7 +2123,9 @@ static unsigned int detectCPUFeatures(vo
             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__
 


More information about the cairo-commit mailing list