[PATCH] Call xf86CrtcRotate from initial drmmode_set_desired_modes call

Alex Deucher alexdeucher at gmail.com
Fri Oct 16 07:35:41 PDT 2015


On Fri, Oct 16, 2015 at 3:31 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Fixes various problems when rotation is specified in xorg.conf.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92475
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

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

> ---
>  src/drmmode_display.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index 623124e..64e79d4 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -2240,6 +2240,8 @@ Bool drmmode_set_desired_modes(ScrnInfoPtr pScrn, drmmode_ptr drmmode,
>                         crtc->rotation = crtc->desiredRotation;
>                         crtc->x = crtc->desiredX;
>                         crtc->y = crtc->desiredY;
> +                       if (!xf86CrtcRotate(crtc))
> +                           return FALSE;
>                 }
>         }
>         return TRUE;
> --
> 2.6.0
>
> _______________________________________________
> 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