mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
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:
committed by
Michel Dänzer
parent
032af35657
commit
4c92dea952
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user