From 18857184ffa6847815d349c020b003f8401e36ee Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Sat, 26 May 2007 12:27:00 -0400 Subject: RADEON: fix handling of DRI lock --- src/radeon_crtc.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index 638bdd08..e8a676ab 100644 --- a/src/radeon_crtc.c +++ b/src/radeon_crtc.c @@ -241,13 +241,20 @@ radeon_crtc_lock(xf86CrtcPtr crtc) RADEONInfoPtr info = RADEONPTR(pScrn); Bool CPStarted = info->CPStarted; + if (info->accelOn) + RADEON_SYNC(info, pScrn); + #ifdef XF86DRI - if (info->CPStarted && pScrn->pScreen) DRILock(pScrn->pScreen, 0); + if (info->CPStarted && pScrn->pScreen) { + DRILock(pScrn->pScreen, 0); + return TRUE; + } else { + return FALSE; + } #endif - if (info->accelOn) - RADEON_SYNC(info, pScrn); return FALSE; + } static void -- cgit v1.2.3