diff options
author | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-05-26 13:12:37 -0400 |
---|---|---|
committer | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-05-26 13:12:37 -0400 |
commit | c4cef0c9481257a744ac99dfc7beb988ce51a8ee (patch) | |
tree | 9be29d9cd9663528d97d8ec8531cdb809fee4079 /src/radeon_crtc.c | |
parent | 899c62e987d5c7524817ba85675e39a8a28e0232 (diff) |
RADEON: make sure we have the lock when SYNCing
Diffstat (limited to 'src/radeon_crtc.c')
-rw-r--r-- | src/radeon_crtc.c | 9 |
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; |