[PATCH] Skip disabled CRTCs in radeon_scanout_(do_)update

Alex Deucher alexdeucher at gmail.com
Wed Jun 24 17:08:51 PDT 2015


On Tue, Jun 16, 2015 at 4:35 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> The vblank / page flip ioctls don't work as expected for a disabled CRTC.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  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
> xorg-driver-ati at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-driver-ati


More information about the xorg-driver-ati mailing list