From 061b825cc8f9926d49c239e37aaf9d4a617cb3b0 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 16 May 2006 17:58:51 +1000 Subject: fix DDX locking so vt switches work --- src/i830_driver.c | 4 ++-- 1 file 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; } -- cgit v1.2.3