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>
This commit is contained in:
parent
7d1e478385
commit
3f35909acb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue