2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 19:20:10 -07:00
repo/xorg/xf86-video-amdgpu/patches/rootless_modesetting.patch

16 lines
394 B
Diff

diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 6a60f54..169085e 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -1823,6 +1823,10 @@ static Bool amdgpu_set_drm_master(ScrnInfoPtr pScrn)
return TRUE;
#endif
+ err = drmIsMaster(pAMDGPUEnt->fd);
+ if (err)
+ return TRUE;
+
err = drmSetMaster(pAMDGPUEnt->fd);
if (err)
ErrorF("Unable to retrieve master\n");