yuzu icon indicating copy to clipboard operation
yuzu copied to clipboard

Support for hardware accelerated video decoding in Multi-GPU Linux systems

Open Anuskuss opened this issue 1 year ago • 2 comments

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

Anuskuss avatar Jul 31 '22 06:07 Anuskuss

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)

xcfrg avatar Jul 31 '22 14:07 xcfrg

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

Anuskuss avatar Jul 31 '22 21:07 Anuskuss