diff options
author | Jammy Zhou <Jammy.Zhou@amd.com> | 2015-10-28 18:39:10 +0800 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-11-09 15:46:48 -0500 |
commit | 3f35909acba117dc8934920d788c7ce612bce444 (patch) | |
tree | 4d21905c07e6a6485e9c8a441a2fc7d29487d06c /present/present.c | |
parent | 7d1e4783853f9830344d101ceab087feb19995be (diff) |
present: Execute right away if target_msc equals current_msc
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 <Jammy.Zhou@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Diffstat (limited to 'present/present.c')
-rw-r--r-- | present/present.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |