summaryrefslogtreecommitdiff
path: root/src/radeon_crtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_crtc.c')
-rw-r--r--src/radeon_crtc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c
index e8a676ab..621d8111 100644
--- a/src/radeon_crtc.c
+++ b/src/radeon_crtc.c
@@ -241,17 +241,16 @@ 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->accelOn)
+ RADEON_SYNC(info, pScrn);
return TRUE;
- } else {
- return FALSE;
}
#endif
+ if (info->accelOn)
+ RADEON_SYNC(info, pScrn);
return FALSE;