diff options
Diffstat (limited to 'src/radeon_present.c')
-rw-r--r-- | src/radeon_present.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/radeon_present.c b/src/radeon_present.c index e3a8f7e2..85da655d 100644 --- a/src/radeon_present.c +++ b/src/radeon_present.c @@ -243,16 +243,14 @@ radeon_present_check_unflip(ScrnInfoPtr scrn) return FALSE; for (i = 0, num_crtcs_on = 0; i < config->num_crtc; i++) { - drmmode_crtc_private_ptr drmmode_crtc = config->crtc[i]->driver_private; - - if (!config->crtc[i]->enabled) - continue; + xf86CrtcPtr crtc = config->crtc[i]; + drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private; if (!drmmode_crtc || drmmode_crtc->rotate.bo || drmmode_crtc->scanout[drmmode_crtc->scanout_id].bo) return FALSE; - if (drmmode_crtc->pending_dpms_mode == DPMSModeOn) + if (drmmode_crtc_can_flip(crtc)) num_crtcs_on++; } |