Based on radeon commit 1ca677309720e2f6c953c9e76f5b34c22a4416c6 Tom
From 557f2b3bd06aa28a300990249a11921e8b9ab1bf Mon Sep 17 00:00:00 2001 From: Tom St Denis <[email protected]> Date: Wed, 13 Apr 2016 11:58:33 -0400 Subject: [PATCH 2/2] present: Support async flips
Based on radeon commit 1ca677309720e2f6c953c9e76f5b34c22a4416c6 Signed-off-by: Tom St Denis <[email protected]> --- src/amdgpu_present.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c index e39b2d28c897..63ba81281899 100644 --- a/src/amdgpu_present.c +++ b/src/amdgpu_present.c @@ -233,9 +233,6 @@ amdgpu_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; @@ -312,7 +309,7 @@ amdgpu_present_flip(RRCrtcPtr crtc, uint64_t event_id, uint64_t target_msc, pixmap, event_id, event, crtc_id, amdgpu_present_flip_event, amdgpu_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.1
_______________________________________________ xorg-driver-ati mailing list [email protected] https://lists.x.org/mailman/listinfo/xorg-driver-ati
