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:
盼兮andKishi85 authored and GitHub committed 2026-07-09 10:06:44 -04:00
1 parent ce1460ebc5
commit 40ae6c8002
4 files changed
+101 -4

No files matched your search

+1 -1
View File
@@ -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();