diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-10-28 17:44:09 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-10-30 18:32:55 +0900 |
commit | 6bab8fabb37eb131e131ce59446c214ded28f779 (patch) | |
tree | 4cc7c03c004ed74cb16e89d706c00b3433954b0e /src/amdgpu_dri3.c | |
parent | 0530e39cc6b7340163e7f6bb6d82719d102ee6e9 (diff) |
Remove info->dri2.drm_fd and info->drmmode->fd
Use pAMDGPUEnt->fd everywhere instead.
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Diffstat (limited to 'src/amdgpu_dri3.c')
-rw-r--r-- | src/amdgpu_dri3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amdgpu_dri3.c b/src/amdgpu_dri3.c index a89421e..53871be 100644 --- a/src/amdgpu_dri3.c +++ b/src/amdgpu_dri3.c @@ -44,6 +44,7 @@ static int amdgpu_dri3_open(ScreenPtr screen, RRProviderPtr provider, int *out) { ScrnInfoPtr scrn = xf86ScreenToScrn(screen); + AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(scrn); AMDGPUInfoPtr info = AMDGPUPTR(scrn); drm_magic_t magic; int fd; @@ -77,7 +78,7 @@ amdgpu_dri3_open(ScreenPtr screen, RRProviderPtr provider, int *out) } } - if (drmAuthMagic(info->dri2.drm_fd, magic) < 0) { + if (drmAuthMagic(pAMDGPUEnt->fd, magic) < 0) { close(fd); return BadMatch; } |