summaryrefslogtreecommitdiff
path: root/src/i810_dri.c
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2005-01-25 00:22:23 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2005-01-25 00:22:23 +0000
commit534096edc2f921e8e38f5f1921e11f1367d47438 (patch)
tree0112775ae632981137d8020d67f325ed99e08570 /src/i810_dri.c
parent462e47e6b845a18569608e1d91a9c165a079b1a9 (diff)
Bugzilla #2329 (https://bugs.freedesktop.org/show_bug.cgi?id=2329)XORG-6_8_2XORG-6_8_1_904XORG-6_8_1_903XORG-6_8-branch
attachment #1717 (https://bugs.freedesktop.org/attachment.cgi?id=1717): Unmap XCursor AGP memory on VT switch to prevent system from lockup. Patch by Matthias Hopf <mhopf@suse.de>.
Diffstat (limited to 'src/i810_dri.c')
-rw-r--r--src/i810_dri.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i810_dri.c b/src/i810_dri.c
index 3dcf5cdb..b1f7cc60 100644
--- a/src/i810_dri.c
+++ b/src/i810_dri.c
@@ -1497,6 +1497,11 @@ I810DRILeave(ScrnInfoPtr pScrn)
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
return FALSE;
}
+ if (pI810->cursorARGBHandle != 0)
+ if (drmAgpUnbind(pI810->drmSubFD, pI810->cursorARGBHandle) != 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
+ return FALSE;
+ }
if (pI810->agpAcquired == TRUE)
drmAgpRelease(pI810->drmSubFD);
pI810->agpAcquired = FALSE;