summaryrefslogtreecommitdiff
path: root/fb/fbpict.c
diff options
context:
space:
mode:
authorSoren Sandmann Pedersen <ssp@dhcp83-218.boston.redhat.com>2007-02-06 17:16:23 -0500
committerSoren Sandmann Pedersen <ssp@dhcp83-218.boston.redhat.com>2007-02-06 17:16:23 -0500
commit876b806ec09d5ff0c6cd19df91006c4eefedfaa6 (patch)
tree0c30b71f2adbbea5641bc4611c6360e23a2e172d /fb/fbpict.c
parent13568d2aa43da4216bbcb46e1125ff28c323ac54 (diff)
Reapply patch to fix AMD CPU detection
Diffstat (limited to 'fb/fbpict.c')
-rw-r--r--fb/fbpict.c4
1 files changed, 3 insertions, 1 deletions
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;