mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-03 05:40:31 +09:00
fix(linux): drop implicit DRM master for card fds (#5286)
Co-authored-by: Kishi85 <41839133+Kishi85@users.noreply.github.com>
This commit is contained in:
1 parent
ce1460ebc5
commit
40ae6c8002
4 files changed
+101
-4
No files matched your search
@@ -383,7 +383,7 @@ namespace cuda {
|
||||
|
||||
fs::path dri_path {"/dev/dri"sv};
|
||||
auto device_path = dri_path / file;
|
||||
return open(device_path.c_str(), O_RDWR);
|
||||
return platf::open_drm_card_fd(device_path);
|
||||
}
|
||||
} catch (const std::filesystem::filesystem_error &err) {
|
||||
BOOST_LOG(error) << "Failed to read sysfs: "sv << err.what();
|
||||
|
||||
Reference in new issue
Block a user