drm/amdgpu/ring: add an interface to get dma frame and ib size
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Sep 2016 14:55:50 +0000 (10:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Sep 2016 19:52:55 +0000 (15:52 -0400)
commitb6384ff5375ad28763bc99558a1022070ca5954c
tree0da1346ab58fe3a3995c108eeacf07079d2847aa
parente75a887162073de9017d220abc12b6e99cfff0d7
drm/amdgpu/ring: add an interface to get dma frame and ib size

Used to properly calculate space on the ring for ib submissions.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h