[PATCH xf86-video-ati 2/2] present: Return rotated CRTCs from radeon_present_get_crtc
Alex Deucher
alexdeucher at gmail.com
Wed Mar 9 17:58:05 UTC 2016
On Wed, Mar 9, 2016 at 4:46 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Sync-to-vblank works fine with rotation. We're still checking for
> rotation in radeon_present_check_flip.
>
> Returning NULL from here resulted in the xserver present code falling
> back to the fake CRTC running at 1 fps.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
For the series:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> src/radeon_present.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/radeon_present.c b/src/radeon_present.c
> index 286b3f4..e0a549d 100644
> --- a/src/radeon_present.c
> +++ b/src/radeon_present.c
> @@ -77,8 +77,7 @@ radeon_present_get_crtc(WindowPtr window)
> window->drawable.y,
> window->drawable.y + window->drawable.height);
>
> - /* Make sure the CRTC is valid and this is the real front buffer */
> - if (crtc != NULL && !crtc->rotatedData)
> + if (crtc)
> randr_crtc = crtc->randr_crtc;
>
> return randr_crtc;
> --
> 2.7.0
>
> _______________________________________________
> xorg-driver-ati mailing list
> xorg-driver-ati at lists.x.org
> https://lists.x.org/mailman/listinfo/xorg-driver-ati
More information about the xorg-driver-ati
mailing list