2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-16 11:40:21 -07:00
repo/xorg/xf86-video-amdgpu/patches/rootless-amdgpu.patch

16 lines
394 B
Diff
Raw Normal View History

2020-02-11 11:41:15 -07:00
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");