mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-13 21:02:13 +00:00
present: signal explicit sync release point in present_vblank_scrap
If a present request using explicit sync is scrapped, instead of sending
a PresentIdleNotify event we should signal the release point.
Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1511>
(cherry picked from commit 80f74b0e44)
This commit is contained in:
committed by
Alan Coopersmith
parent
b1086889ed
commit
5102e1405a
@@ -221,7 +221,14 @@ present_vblank_scrap(present_vblank_ptr vblank)
|
||||
vblank->pixmap->drawable.id, vblank->window->drawable.id,
|
||||
vblank->crtc));
|
||||
|
||||
present_pixmap_idle(vblank->pixmap, vblank->window, vblank->serial, vblank->idle_fence);
|
||||
#ifdef DRI3
|
||||
if (vblank->release_syncobj)
|
||||
vblank->release_syncobj->signal(vblank->release_syncobj,
|
||||
vblank->release_point);
|
||||
else
|
||||
#endif /* DRI3 */
|
||||
present_pixmap_idle(vblank->pixmap, vblank->window, vblank->serial, vblank->idle_fence);
|
||||
|
||||
present_fence_destroy(vblank->idle_fence);
|
||||
dixDestroyPixmap(vblank->pixmap, vblank->pixmap->drawable.id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user