On Tue, Jun 16, 2015 at 4:35 AM, Michel Dänzer <[email protected]> wrote: > From: Michel Dänzer <[email protected]> > > The vblank / page flip ioctls don't work as expected for a disabled CRTC. > > Signed-off-by: Michel Dänzer <[email protected]>
Reviewed-by: Alex Deucher <[email protected]> > --- > src/radeon_kms.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/src/radeon_kms.c b/src/radeon_kms.c > index 25a746d..ba95653 100644 > --- a/src/radeon_kms.c > +++ b/src/radeon_kms.c > @@ -338,7 +338,8 @@ radeon_scanout_do_update(xf86CrtcPtr xf86_crtc, int > scanout_id) > RADEONInfoPtr info; > Bool force; > > - if (drmmode_crtc->dpms_mode != DPMSModeOn || > + if (!xf86_crtc->enabled || > + drmmode_crtc->dpms_mode != DPMSModeOn || > !drmmode_crtc->scanout[scanout_id].pixmap) > return FALSE; > > @@ -409,7 +410,8 @@ radeon_scanout_update(xf86CrtcPtr xf86_crtc) > DrawablePtr pDraw; > BoxRec extents; > > - if (drmmode_crtc->scanout_update_pending || > + if (!xf86_crtc->enabled || > + drmmode_crtc->scanout_update_pending || > !drmmode_crtc->scanout[0].pixmap || > drmmode_crtc->dpms_mode != DPMSModeOn) > return; > -- > 2.1.4 > > _______________________________________________ > xorg-driver-ati mailing list > [email protected] > http://lists.x.org/mailman/listinfo/xorg-driver-ati _______________________________________________ xorg-driver-ati mailing list [email protected] http://lists.x.org/mailman/listinfo/xorg-driver-ati
