backend/wayland: add basic linux-dmabuf feedback support

This patch makes it so we bind to zwp_linux_dmabuf_v1 version 4 and
we use it to grab the main device. v4 sends supported formats via a
table so we need to handle this as well.

v4 allows wlroots to remove the requirement for Mesa's internal
wl_drm interface.
This commit is contained in:
Simon Ser 2021-12-08 01:43:15 +01:00 committed by Kirill Primak
parent 8e566f716c
commit 9f41627aa1
2 changed files with 162 additions and 6 deletions

View file

@ -105,7 +105,7 @@ wayland_server = dependency('wayland-server',
)
drm = dependency('libdrm',
version: '>=2.4.108',
version: '>=2.4.109',
fallback: ['libdrm', 'ext_libdrm'],
default_options: [
'libkms=false',