The Wayback Machine - https://web.archive.org/web/20211119172432/https://github.com/obsproject/obs-studio/issues/2936
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] DRI devices are not persistent across reboots and should not be used to identify GPUs #2936

Open
marmistrz opened this issue May 15, 2020 · 6 comments · May be fixed by #5336
Open

[BUG] DRI devices are not persistent across reboots and should not be used to identify GPUs #2936

marmistrz opened this issue May 15, 2020 · 6 comments · May be fixed by #5336

Comments

@marmistrz
Copy link

@marmistrz marmistrz commented May 15, 2020

Platform

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.

@marmistrz marmistrz changed the title [BUG] <bug description> [BUG] DRI devices are not persistent across reboots and should not be used to identify GPUs May 15, 2020
@Fenrirthviti
Copy link
Member

@Fenrirthviti Fenrirthviti commented 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
Copy link
Collaborator

@kkartaltepe kkartaltepe commented 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
Copy link
Author

@marmistrz marmistrz commented May 16, 2020

You can use /dev/dri/by-path/ for instance /dev/dri/by-path/pci-0000:00:02.0-render.

@RarogCmex
Copy link

@RarogCmex RarogCmex commented Jun 18, 2020

I can confirm it with Intel hd 530/amd radeon rx 560.

@carlocastoldi
Copy link

@carlocastoldi carlocastoldi commented 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
Copy link
Collaborator

@kkartaltepe kkartaltepe commented 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.

@carlocastoldi carlocastoldi linked a pull request that will close this issue Sep 27, 2021
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment