forked from kiss-community/repo
xf86-video-amdgpu: Fix rootless xorg
This commit is contained in:
parent
6bb6f5bde2
commit
ac10954480
@ -1,5 +1,7 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
patch -p1 < rootless-amdgpu.patch
|
||||
|
||||
export LDFLAGS="-Wl,-z,lazy"
|
||||
|
||||
./configure \
|
||||
|
@ -1 +1,2 @@
|
||||
4f0ea4e0ae61995ac2b7c72433d31deab63b60c78763020aaa1b28696124fe5d xf86-video-amdgpu-19.1.0.tar.bz2
|
||||
fa8567fa877982182f2ee09dc138ef8ea466e84c77682c5c4234ded4f951476a rootless-amdgpu.patch
|
||||
|
15
xorg/xf86-video-amdgpu/patches/rootless-amdgpu.patch
Normal file
15
xorg/xf86-video-amdgpu/patches/rootless-amdgpu.patch
Normal 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");
|
@ -1 +1,2 @@
|
||||
https://x.org/releases/individual/driver/xf86-video-amdgpu-19.1.0.tar.bz2
|
||||
patches/rootless-amdgpu.patch
|
||||
|
@ -1 +1 @@
|
||||
19.1.0 1
|
||||
19.1.0 2
|
||||
|
Loading…
Reference in New Issue
Block a user