yuzu
yuzu copied to clipboard
Support for hardware accelerated video decoding in Multi-GPU Linux systems
My monitor is hooked up to my Nvidia dGPU (Card #0) but I also have an Intel iGPU (Card #1), Neither one of them works and it's falling back to software decoding.
Since my Intel GPU is on the second card (renderD129
) I'd like to request support for querying all available devices to find the Intel one
$ vainfo
vaInitialize failed with error code -1 (unknown libva error),exit
$ vainfo --display drm --device /dev/dri/renderD129
vainfo: VA-API version: 1.15 (libva 2.15.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.4.4 ()
or support for any of the VA-API wrappers
$ yay -S libva-vdpau-driver-vp9-git
$ vainfo
vainfo: VA-API version: 1.15 (libva 2.15.0)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
$ yay -S nvidia-vaapi-driver-git
$ vainfo
vainfo: VA-API version: 1.15 (libva 2.15.0)
vainfo: Driver version: VA-API NVDEC driver
or simply support anything other than VA-API
$ ffmpeg -hide_banner -hwaccels
Hardware acceleration methods:
vdpau
cuda
vaapi
qsv
drm
Can confirm this issue.
vdpau is supported, you shouldn't be using any wrappers
What's your output of vdpauinfo
? (after uninstalling all wrappers on your system)
$ vdpauinfo
display: :0 screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library 515.57 Wed Jun 22 22:28:16 UTC 2022
Although since the Switch literally uses NVDEC, it should be possible to just map that to system NVDEC.