maintainer-feedback requested: [Bug 271823] x11-wm/mutter: enable DMABUF support

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 Jun 2023 19:19:30 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gnome (Nobody)
<gnome@FreeBSD.org> for maintainer-feedback:
Bug 271823: x11-wm/mutter: enable DMABUF support
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271823



--- Description ---
Instead of patching out DMABUF support due to missing <linux/dma-buf.h> bundle
the version from pending DRM KPI. Similar to
https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/include/drm-uapi/dma-buf.h

Tested under Xwayland (rootful) e.g.,

$ pkg install mutter cage mpv libva-intel-driver
$ export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR=/tmp}
$ seatd-launch cage Xwayland -retro :3 &
$ export DISPLAY=:3
$ unset WAYLAND_DISPLAY XDG_SESSION_TYPE
$ mutter &
$ mpv --hwdec=vaapi --gpu-api=vulkan foo.mp4