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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 Jun 2023 19:19:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271823

            Bug ID: 271823
           Summary: x11-wm/mutter: enable DMABUF support
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
             Flags: maintainer-feedback?(gnome@FreeBSD.org)
          Assignee: gnome@FreeBSD.org

Created attachment 242594
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242594&action=edit
v1 (apply via "git am")

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

-- 
You are receiving this mail because:
You are the assignee for the bug.