Commit 3f35909a authored by Jammy Zhou's avatar Jammy Zhou Committed by Adam Jackson

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: 's avatarJammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: 's avatarMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: 's avatarAxel Davy <axel.davy@ens.fr>
parent 7d1e4783
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment