xf86-video-amdgpu: Fix rootless xorg

This commit is contained in:
Dylan Araps 2020-02-11 20:41:15 +02:00
parent 6bb6f5bde2
commit ac10954480
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
5 changed files with 20 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
patch -p1 < rootless-amdgpu.patch
export LDFLAGS="-Wl,-z,lazy"
./configure \

View File

@ -1 +1,2 @@
4f0ea4e0ae61995ac2b7c72433d31deab63b60c78763020aaa1b28696124fe5d xf86-video-amdgpu-19.1.0.tar.bz2
fa8567fa877982182f2ee09dc138ef8ea466e84c77682c5c4234ded4f951476a rootless-amdgpu.patch

View File

@ -0,0 +1,15 @@
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");

View File

@ -1 +1,2 @@
https://x.org/releases/individual/driver/xf86-video-amdgpu-19.1.0.tar.bz2
patches/rootless-amdgpu.patch

View File

@ -1 +1 @@
19.1.0 1
19.1.0 2