[PATCH xf86-video-ati 2/2] present: Support async flips
Alex Deucher
alexdeucher at gmail.com
Fri Apr 1 13:58:50 UTC 2016
On Fri, Apr 1, 2016 at 5:52 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> The xserver Present code only calls radeon_present_flip with
> sync_flip=FALSE if radeon_present_screen_init sets
> PresentCapabilityAsync, and the latter only sets it if the kernel driver
> advertises support for async flips.
>
> 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 | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/src/radeon_present.c b/src/radeon_present.c
> index c012fed..1eced4a 100644
> --- a/src/radeon_present.c
> +++ b/src/radeon_present.c
> @@ -248,9 +248,6 @@ radeon_present_check_flip(RRCrtcPtr crtc, WindowPtr window, PixmapPtr pixmap,
> if (info->hwcursor_disabled)
> return FALSE;
>
> - if (!sync_flip)
> - return FALSE;
> -
> if (info->drmmode.dri2_flipping)
> return FALSE;
>
> @@ -339,7 +336,7 @@ radeon_present_flip(RRCrtcPtr crtc, uint64_t event_id, uint64_t target_msc,
> event_id, event, crtc_id,
> radeon_present_flip_event,
> radeon_present_flip_abort,
> - FLIP_VSYNC);
> + sync_flip ? FLIP_VSYNC : FLIP_ASYNC);
> if (!ret)
> xf86DrvMsg(scrn->scrnIndex, X_ERROR, "present flip failed\n");
> else
> --
> 2.8.0.rc3
>
> _______________________________________________
> 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