backend/wayland: add support for explicit sync

wl_buffer.release event delivery becomes undefined when using the
linux-drm-syncobj-v1 protocol, so we need to wait for buffer
release via a timeline point instead.

The protocol requires both wait and signal timelines to be set, so
we need to create one when the compositor only supplies a wait
timeline.
This commit is contained in:
Simon Ser 2024-10-26 19:19:41 +02:00 committed by Simon Zeni
parent ca29f43a54
commit e9a6b3b85d
4 changed files with 195 additions and 5 deletions

View file

@ -15,6 +15,7 @@ wlr_files += files(
client_protos = [
'drm',
'linux-dmabuf-v1',
'linux-drm-syncobj-v1',
'pointer-gestures-unstable-v1',
'presentation-time',
'relative-pointer-unstable-v1',