/[gentoo-x86]/x11-base/xorg-server/files/1.2.0-fix-amd-cpu-detection.patch
Gentoo

Contents of /x11-base/xorg-server/files/1.2.0-fix-amd-cpu-detection.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Sep 28 07:41:03 2009 UTC (8 years, 11 months ago) by remi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
x11-base/xorg-server: drop old ebuilds, prune ${FILESDIR}
(Portage version: 2.2_rc42/cvs/Linux i686)

1 dberkholz 1.1 http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commit;h=876b806ec09d5ff0c6cd19df91006c4eefedfaa6
2     Reapply patch to fix AMD CPU detection
3     author Soren Sandmann Pedersen <ssp@dhcp83-218.boston.redhat.com>
4     Tue, 6 Feb 2007 22:16:23 +0000 (17:16 -0500)
5     committer Soren Sandmann Pedersen <ssp@dhcp83-218.boston.redhat.com>
6     Tue, 6 Feb 2007 22:16:23 +0000 (17:16 -0500)
7     commit 876b806ec09d5ff0c6cd19df91006c4eefedfaa6
8     tree 0c30b71f2adbbea5641bc4611c6360e23a2e172d tree
9     parent 13568d2aa43da4216bbcb46e1125ff28c323ac54 commit | commitdiff
10     Reapply patch to fix AMD CPU detection
11    
12     --- xorg-server-1.2.0.orig/fb/fbpict.c 2007-03-18 21:43:21.000000000 +0100
13     +++ xorg-server-1.2.0/fb/fbpict.c 2007-03-19 00:30:44.000000000 +0100
14     @@ -1470,21 +1470,23 @@
15     if (result) {
16     /* result now contains the standard feature bits */
17     if (result & (1 << 15))
18     features |= CMOV;
19     if (result & (1 << 23))
20     features |= MMX;
21     if (result & (1 << 25))
22     features |= SSE;
23     if (result & (1 << 26))
24     features |= SSE2;
25     - if ((result & MMX) && !(result & SSE) && (strcmp(vendor, "AuthenticAMD") == 0)) {
26     + if ((features & MMX) && !(features & SSE) &&
27     + (strcmp(vendor, "AuthenticAMD") == 0 ||
28     + strcmp(vendor, "Geode by NSC") == 0)) {
29     /* check for AMD MMX extensions */
30    
31     unsigned int result;
32     __asm__("push %%ebx\n"
33     "mov $0x80000000, %%eax\n"
34     "cpuid\n"
35     "xor %%edx, %%edx\n"
36     "cmp $0x1, %%eax\n"
37     "jge 2\n"
38     "mov $0x80000001, %%eax\n"

  ViewVC Help
Powered by ViewVC 1.1.20