From 7ff7cec9220815eb5f74cfd95860aaa5f1f263bd Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Mon, 24 Jan 2005 15:02:17 +0000 Subject: Unmap XCursor AGP memory on VT switch to prevent system from lockup (Matthias Hopf). --- src/i810_dri.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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; -- cgit v1.2.3