summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2005-01-24 15:02:17 +0000
committerEgbert Eich <eich@suse.de>2005-01-24 15:02:17 +0000
commit7ff7cec9220815eb5f74cfd95860aaa5f1f263bd (patch)
treee84e826fb4284108392c5ce8c2dc5885a9e8cbd3 /src
parentd4c87adf6792ae9af641b9824c547d18cdd1e521 (diff)
Unmap XCursor AGP memory on VT switch to prevent system from lockup
(Matthias Hopf).
Diffstat (limited to 'src')
-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..8e49fd93 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;