summaryrefslogtreecommitdiff
path: root/x11/xf86-video-ati/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-04-10 19:10:54 +0000
committerjoerg <joerg@pkgsrc.org>2007-04-10 19:10:54 +0000
commit86b75a0e5313b9dcce83486a647674b9109d78f0 (patch)
tree3faafc90b99990e04a27520e20fbf393f7535521 /x11/xf86-video-ati/patches
parentf34e1590f2d95015849c314984444aa4fede7c73 (diff)
downloadpkgsrc-86b75a0e5313b9dcce83486a647674b9109d78f0.tar.gz
Include the mode restore bugfix from monolithic Xorg, that is derived
from the version in xsrc which in turn was provided by Matthieu Herb over 3 years ago on the XFree86 lists. Suggested by various developers, hold-back due to the working state in xorg-server 1.1.1. Tracing down the exact change showed that the changed default color depth made this issue a lot more prominent again. Discussed with Eric Anholt. Bump revision.
Diffstat (limited to 'x11/xf86-video-ati/patches')
-rw-r--r--x11/xf86-video-ati/patches/patch-aa31
1 files changed, 31 insertions, 0 deletions
diff --git a/x11/xf86-video-ati/patches/patch-aa b/x11/xf86-video-ati/patches/patch-aa
new file mode 100644
index 00000000000..df2fbb6f959
--- /dev/null
+++ b/x11/xf86-video-ati/patches/patch-aa
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1 2007/04/10 19:10:55 joerg Exp $
+
+--- src/radeon_driver.c.orig 2007-04-10 20:15:31.000000000 +0200
++++ src/radeon_driver.c
+@@ -7374,7 +7374,7 @@ static void RADEONSave(ScrnInfoPtr pScrn
+ vgaHWSave(pScrn, &hwp->SavedReg, VGA_SR_MODE); /* Save mode only */
+ # else
+ /* Save mode * & fonts & cmap */
+- vgaHWSave(pScrn, &hwp->SavedReg, VGA_SR_MODE | VGA_SR_FONTS);
++ vgaHWSave(pScrn, &hwp->SavedReg, VGA_SR_ALL);
+ # endif
+ vgaHWLock(hwp);
+ }
+@@ -7450,7 +7450,7 @@ static void RADEONRestore(ScrnInfoPtr pS
+ */
+ vgaHWRestore(pScrn, &hwp->SavedReg, VGA_SR_MODE );
+ # else
+- vgaHWRestore(pScrn, &hwp->SavedReg, VGA_SR_MODE | VGA_SR_FONTS );
++ vgaHWRestore(pScrn, &hwp->SavedReg, VGA_SR_ALL );
+ # endif
+ vgaHWLock(hwp);
+ } else {
+@@ -7465,7 +7465,7 @@ static void RADEONRestore(ScrnInfoPtr pS
+ #if defined(__powerpc__)
+ vgaHWRestore(pScrn0, &hwp0->SavedReg, VGA_SR_MODE);
+ #else
+- vgaHWRestore(pScrn0, &hwp0->SavedReg, VGA_SR_MODE | VGA_SR_FONTS );
++ vgaHWRestore(pScrn0, &hwp0->SavedReg, VGA_SR_ALL);
+ #endif
+ vgaHWLock(hwp0);
+ }