[PATCH] libdrm/amdgpu: Use private fd for amdgpu_device and winsys hash table to fix ZaphodHeads.

2015-07-14 Thread Mario Kleiner
The amdgpu_device for a device node needs its own dup'ed fd, instead of using the original fd passed in for a screen, to make multi-x-screen ZaphodHeads configurations work on amdgpu. The original fd's lifetime differs from that of the amdgpu_device, and from the one stored in the hash. The hash k

Re: [PATCH xf86-video-amdgpu] Adopt for new X server dirty tracking APIs.

2015-07-14 Thread Alex Deucher
On Tue, Jul 14, 2015 at 4:08 AM, Michel Dänzer wrote: > From: Dave Airlie > > Signed-off-by: Dave Airlie > > (Ported from radeon commit b6d871bf299c7d0f106c07ee4d8bd3b2337f53cc) > > Signed-off-by: Michel Dänzer Reviewed-by: Alex Deucher > --- > src/amdgpu_kms.c | 4 > src/drmmode_

[PATCH xf86-video-amdgpu] Adopt for new X server dirty tracking APIs.

2015-07-14 Thread Michel Dänzer
From: Dave Airlie Signed-off-by: Dave Airlie (Ported from radeon commit b6d871bf299c7d0f106c07ee4d8bd3b2337f53cc) Signed-off-by: Michel Dänzer --- src/amdgpu_kms.c | 4 src/drmmode_display.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/amdgpu_kms.c b/