diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2017-06-27 19:15:18 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2017-06-30 17:40:12 +0900 |
commit | df88d51c5005476e6fbfca3f31b54be079ec5aaa (patch) | |
tree | 20380d231166e1ef17c8c86ed4570099aaf74813 /src/radeon_dri3.c | |
parent | 19626bce4e5e31c863eedb503ea3884ac3f60bea (diff) |
Use pRADEONEnt->fd exclusively for the DRM file descriptor
This brings us closer to amdgpu.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_dri3.c')
-rw-r--r-- | src/radeon_dri3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_dri3.c b/src/radeon_dri3.c index fa24abae..3e689ffd 100644 --- a/src/radeon_dri3.c +++ b/src/radeon_dri3.c @@ -43,6 +43,7 @@ static int open_master_node(ScreenPtr screen, int *out) { ScrnInfoPtr scrn = xf86ScreenToScrn(screen); + RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn); RADEONInfoPtr info = RADEONPTR(scrn); drm_magic_t magic; int fd; @@ -76,7 +77,7 @@ static int open_master_node(ScreenPtr screen, int *out) } } - if (drmAuthMagic(info->dri2.drm_fd, magic) < 0) { + if (drmAuthMagic(pRADEONEnt->fd, magic) < 0) { close(fd); return BadMatch; } |