Unmap XCursor AGP memory on VT switch to prevent system from lockup

(Matthias Hopf).
This commit is contained in:
Egbert Eich 2005-01-24 15:02:17 +00:00
parent d4c87adf67
commit 7ff7cec922
1 changed files with 5 additions and 0 deletions

View File

@ -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;