Per-surface-commit buffer release events
The linux-explicit-synchronization protocol allows the client to get per-surface-commit buffer release events. This is desirable in case the same wl_buffer
object is re-used on multiple wl_surface
s.
However, it's not possible for a compositor to implement the per-surface-commit buffer release events part of linux-explicit-synchronization, without also properly handling explicit fences coming from clients.
We've talked about extracting this functionality out of linux-explicit-synchronization in the past. However @daniels has suggested something else: add a way for a client to clone/duplicate a wl_buffer
. That way, clients can make sure they never submit the same wl_buffer
twice, the only submit copies, and get separate wl_buffer.release
events.