summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-05-16 17:58:51 +1000
committerDave Airlie <airlied@linux.ie>2006-06-02 10:04:59 +1000
commit061b825cc8f9926d49c239e37aaf9d4a617cb3b0 (patch)
tree2e023ac660f8e26abe43b8f967c312ab7d749b02
parent3dac8dbe7a8007f107046f68de3a5b34ca14cfcd (diff)
fix DDX locking so vt switches work
-rw-r--r--src/i830_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 01b2e749..4409ebf8 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -5657,7 +5657,7 @@ I830BIOSLeaveVT(int scrnIndex, int flags)
#ifdef XF86DRI
if (pI830->directRenderingOpen) {
- I830DRILock(pScrn);
+ DRILock(screenInfo.screens[pScrn->scrnIndex], 0);
drmCtlUninstHandler(pI830->drmSubFD);
}
@@ -5993,7 +5993,7 @@ I830BIOSEnterVT(int scrnIndex, int flags)
DO_RING_IDLE();
DPRINTF(PFX, "calling dri unlock\n");
- I830DRIUnlock(pScrn);
+ DRIUnlock(screenInfo.screens[pScrn->scrnIndex]);
}
pI830->LockHeld = 0;
}