You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] DRI devices are not persistent across reboots and should not be used to identify GPUs #2936
Operating system and version: Arch Linu
OBS Studio version: OBS Studio - 25.0.8-1 (linux)
Expected Behavior
If there are several GPUs available at a host machine (e.g. dual GPU laptops, Intel+AMD/Intel+Nvidia), the same physical GPU should be used for encoding with ffmpeg-vaapi. Currently the same /dev/dri/renderDXXX device is used for encoding instead.
The mapping of physical devices to /dev/dri/renderDXXX is not persistent across reboots, so some other information about the devices should be used to identify it instead.
changed the title [-][BUG] <bug description>[/-][+][BUG] DRI devices are not persistent across reboots and should not be used to identify GPUs[/+]on May 15, 2020
Any intention to work on this? Shouldn't be too difficult to point to /dev/dri/by-path/ rather then /dev/dri/, is it?
combine it with lspci | grep ' VGA ' and we even get the actual name for each of the available cards!
Activity
[-][BUG] <bug description>[/-][+][BUG] DRI devices are not persistent across reboots and should not be used to identify GPUs[/+]Fenrirthviti commentedon May 15, 2020
Do you have a suggestion on what else should be used? Is there a way to consistently identify graphics devices across reboots?
kkartaltepe commentedon May 15, 2020
Doesnt look like there is any persistent mapping to DRI devices. Maybe the best thing available currently is to identify devices by PCI slot.
marmistrz commentedon May 16, 2020
You can use
/dev/dri/by-path/for instance/dev/dri/by-path/pci-0000:00:02.0-render.RarogCmex commentedon Jun 18, 2020
I can confirm it with Intel hd 530/amd radeon rx 560.
carlocastoldi commentedon Sep 25, 2021
Any intention to work on this? Shouldn't be too difficult to point to
/dev/dri/by-path/rather then/dev/dri/, is it?combine it with
lspci | grep ' VGA 'and we even get the actual name for each of the available cards!kkartaltepe commentedon Sep 25, 2021
I dont believe anyone is actively working on it, it is a good issue for anyone wanting to start with contributing though.