From 3f35909acba117dc8934920d788c7ce612bce444 Mon Sep 17 00:00:00 2001 From: Jammy Zhou Date: Wed, 28 Oct 2015 18:39:10 +0800 Subject: [PATCH] present: Execute right away if target_msc equals current_msc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is according to the protocol: "If 'options' contains PresentOptionAsync, and the 'target-msc' is less than or equal to the current msc for 'window', then the operation will be performed as soon as possible, not necessarily waiting for the next vertical blank interval." Signed-off-by: Jammy Zhou Reviewed-by: Michel Dänzer Reviewed-by: Axel Davy --- present/present.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/present/present.c b/present/present.c index beb4ff03a..5900c2289 100644 --- a/present/present.c +++ b/present/present.c @@ -871,7 +871,7 @@ present_pixmap(WindowPtr window, xorg_list_add(&vblank->event_queue, &present_exec_queue); vblank->queued = TRUE; - if ((pixmap && target_msc >= crtc_msc) || (!pixmap && target_msc > crtc_msc)) { + if (target_msc > crtc_msc) { ret = present_queue_vblank(screen, target_crtc, vblank->event_id, target_msc); if (ret == Success) return Success;