drm/amdgpu: add FENCE_TO_HANDLE ioctl that returns syncobj or sync_file
authorMarek Olšák <marek.olsak@amd.com>
Tue, 12 Sep 2017 20:42:14 +0000 (22:42 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Oct 2017 20:47:56 +0000 (16:47 -0400)
commit7ca24cf2d2269bde25e21c02a77fe81995a081ae
tree88c7018f58df31f8890e15d735eb0868d8dc1c57
parent684fd0af4732f373503c6af2973b4faa352db4e2
drm/amdgpu: add FENCE_TO_HANDLE ioctl that returns syncobj or sync_file

for being able to convert an amdgpu fence into one of the handles.
Mesa will use this.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
include/uapi/drm/amdgpu_drm.h