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:
盼兮
2026-07-09 22:06:44 +08:00
committed by GitHub
parent ce1460ebc5
commit 40ae6c8002
4 changed files with 101 additions and 4 deletions

View File

@@ -436,10 +436,8 @@ namespace platf {
*/
int init(const char *path) {
cap_sys_admin admin;
fd.el = open(path, O_RDWR);
fd.el = open_drm_card_fd(path);
if (fd.el < 0) {
BOOST_LOG(error) << "Couldn't open: "sv << path << ": "sv << strerror(errno);
return -1;
}