[Bug 275360] graphics/mesa-dri: enable Vulkan Video support after Mesa >= 23 update

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 Nov 2023 19:23:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275360

            Bug ID: 275360
           Summary: graphics/mesa-dri: enable Vulkan Video support after
                    Mesa >= 23 update
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
        Depends on: 273703
          Assignee: x11@FreeBSD.org
             Flags: maintainer-feedback?(x11@FreeBSD.org)

Created attachment 246591
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=246591&action=edit
v1 (unsure about style)

Similar to ports aada4209a3b0. Vulkan Video extensions are part of Vulkan
drivers (mesa-dri). It's an alternative API to VA-API (mesa-gallium-va,
libva-*driver), VDPAU (mesa-gallium-vdpau, nvidia-driver), NVDEC (nv-sglrun +
nvidia-driver), QSV (intel-media-sdk, onevpl), AMF (unported).

Upstream support enabled by
https://gitlab.freedesktop.org/mesa/mesa/-/commit/c90e5ddc710a (removal of beta
ifdefs) but runtime is still gated by environment variables probably due to
insufficient QA (validation on all supported hardware). There're also too few
open source consumers, and many video players are OpenGL-only.

$ pkg install mpv mesa-dri # if built by poudriere
$ export ANV_VIDEO_DECODE=1 RADV_PERFTEST=video_decode
$ mpv --vo=gpu-next --gpu-api=vulkan --hwdec=vulkan /path/to/file.mp4
[...]
Using hardware decoding (vulkan).
VO: [gpu-next] 1920x1080 vulkan[nv12]
[...]

Tested under X11 (Xwayland) and Wayland (Sway) on Intel Skylake GT2 (0x1912)
inside 12.4/13.2 amd64 jail with drm-515-kmod (5.15-lts-focal per bug 274770 to
avoid recent DMABUF regressions) on -CURRENT kernel and X11/Wayland sockets
passed through.


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273703
[Bug 273703] graphics/mesa*: Update to 23.1.8
-- 
You are receiving this mail because:
You are the assignee for the bug.