summaryrefslogtreecommitdiff
path: root/src/radeon_accel.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-06-27 19:15:18 +0900
committerMichel Dänzer <michel@daenzer.net>2017-06-30 17:40:12 +0900
commitdf88d51c5005476e6fbfca3f31b54be079ec5aaa (patch)
tree20380d231166e1ef17c8c86ed4570099aaf74813 /src/radeon_accel.c
parent19626bce4e5e31c863eedb503ea3884ac3f60bea (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_accel.c')
-rw-r--r--src/radeon_accel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_accel.c b/src/radeon_accel.c
index 1def2a3f..fc80ed74 100644
--- a/src/radeon_accel.c
+++ b/src/radeon_accel.c
@@ -94,11 +94,11 @@
static int RADEONDRMGetNumPipes(ScrnInfoPtr pScrn, int *num_pipes)
{
- RADEONInfoPtr info = RADEONPTR(pScrn);
+ RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
struct drm_radeon_info np2;
np2.value = (unsigned long)num_pipes;
np2.request = RADEON_INFO_NUM_GB_PIPES;
- return drmCommandWriteRead(info->dri2.drm_fd, DRM_RADEON_INFO, &np2, sizeof(np2));
+ return drmCommandWriteRead(pRADEONEnt->fd, DRM_RADEON_INFO, &np2, sizeof(np2));
}
/* Initialize the acceleration hardware */