diff options
Diffstat (limited to 'src/radeon_crtc.c')
-rw-r--r-- | src/radeon_crtc.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index 638bdd0..e8a676a 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 |