present: Move flip target_msc adjustment out of present_vblank_create

Preparation for different handling between SCMD & WNMD. No functional
change intended.

Reviewed-by: Roman Gilg <subdiff@gmail.com>
Tested-by: Roman Gilg <subdiff@gmail.com>
This commit is contained in:
Michel Dänzer
2020-07-28 18:48:42 +02:00
committed by Michel Dänzer
parent 032af35657
commit 4c92dea952
4 changed files with 13 additions and 8 deletions

View File

@@ -732,12 +732,15 @@ present_scmd_pixmap(WindowPtr window,
screen_priv->info ? &screen_priv->info->capabilities : NULL,
notifies,
num_notifies,
&target_msc,
target_msc,
crtc_msc);
if (!vblank)
return BadAlloc;
if (vblank->flip && vblank->sync_flip)
target_msc--;
xorg_list_append(&vblank->event_queue, &present_exec_queue);
vblank->queued = TRUE;
if (msc_is_after(target_msc, crtc_msc)) {