maintainer-feedback requested: [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
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-x11 (Nobody)
<x11@FreeBSD.org> for maintainer-feedback:
Bug 275360: graphics/mesa-dri: enable Vulkan Video support after Mesa >= 23
update
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275360



--- Description ---
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.