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>
This commit is contained in:
Erik Kurzinger 2024-04-30 11:55:08 +02:00 committed by Marge Bot
parent d5192ba8eb
commit 80f74b0e44

View File

@ -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);