2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-24 16:30:04 -07:00
repo/xorg/xf86-video-amdgpu/patches/rootless-amdgpu.patch
2020-02-11 20:41:15 +02:00

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");