mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
linux_drm_syncobj_v1: add _state_add_release_from_implicit_sync()
This can help to gradually convert existing components away from `wlr_linux_drm_syncobj_v1_state_signal_release_with_buffer()`
This commit is contained in:
parent
c66a910753
commit
4a9692013d
4 changed files with 116 additions and 8 deletions
|
|
@ -74,4 +74,21 @@ bool wlr_linux_drm_syncobj_v1_state_add_release_point(
|
|||
struct wlr_drm_syncobj_timeline *release_timeline, uint64_t release_point,
|
||||
struct wl_event_loop *event_loop);
|
||||
|
||||
/**
|
||||
* Register the DMA-BUF release of a buffer for buffer usage.
|
||||
* Non-dmabuf buffers are considered to be immediately available (no wait).
|
||||
*
|
||||
* This function may be called multiple times for the same commit. The client's
|
||||
* release point will be signalled when all registered points are signalled, and
|
||||
* a new buffer has been committed.
|
||||
*
|
||||
* Because the platform may not support DMA-BUF fence merges, a wl_event_loop
|
||||
* must be supplied to schedule a wait internally, if needed
|
||||
*
|
||||
* Waits for write access
|
||||
*/
|
||||
bool wlr_linux_drm_syncobj_v1_state_add_release_from_implicit_sync(
|
||||
struct wlr_linux_drm_syncobj_surface_v1_state *state,
|
||||
struct wlr_buffer *buffer, struct wl_event_loop *event_loop);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue