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

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
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: [email protected]
          Reporter: [email protected]
        Depends on: 273703
          Assignee: [email protected]
             Flags: maintainer-feedback?([email protected])

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.