diff options
author | Christian König <christian.koenig@amd.com> | 2015-07-06 16:06:40 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:13 -0400 |
commit | 91e1a5207edec9e4f888e44478a9a254186e0ba8 (patch) | |
tree | d03a1e06f744981034fb67eeb15b8d1644816278 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 0b492a4c92050862a9780b941d52c05923fcd669 (diff) |
drm/amdgpu: deal with foreign fences in amdgpu_sync
This also requires some error handling from the callers of that function.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 069cc28941ba..70e783a849ed 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -699,8 +699,8 @@ struct amdgpu_sync { | |||
699 | }; | 699 | }; |
700 | 700 | ||
701 | void amdgpu_sync_create(struct amdgpu_sync *sync); | 701 | void amdgpu_sync_create(struct amdgpu_sync *sync); |
702 | void amdgpu_sync_fence(struct amdgpu_sync *sync, | 702 | int amdgpu_sync_fence(struct amdgpu_device *adev, struct amdgpu_sync *sync, |
703 | struct amdgpu_fence *fence); | 703 | struct fence *f); |
704 | int amdgpu_sync_resv(struct amdgpu_device *adev, | 704 | int amdgpu_sync_resv(struct amdgpu_device *adev, |
705 | struct amdgpu_sync *sync, | 705 | struct amdgpu_sync *sync, |
706 | struct reservation_object *resv, | 706 | struct reservation_object *resv, |