diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2015-08-02 23:38:09 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:50 -0400 |
commit | e40a31159b72742224c249cf57c5313be7ccd629 (patch) | |
tree | 6d1bf4338313f616becf5c2394390560db43fbfc /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 1d7dd229f5dded247bc8800f8f4551d3d6314afa (diff) |
drm/amdgpu: use kernel fence diretly in amdgpu_bo_fence
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian K?nig <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <jammy.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 6c63a2c6395c..87d67f8c85c9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -658,13 +658,13 @@ int amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo) | |||
658 | * @shared: true if fence should be added shared | 658 | * @shared: true if fence should be added shared |
659 | * | 659 | * |
660 | */ | 660 | */ |
661 | void amdgpu_bo_fence(struct amdgpu_bo *bo, struct amdgpu_fence *fence, | 661 | void amdgpu_bo_fence(struct amdgpu_bo *bo, struct fence *fence, |
662 | bool shared) | 662 | bool shared) |
663 | { | 663 | { |
664 | struct reservation_object *resv = bo->tbo.resv; | 664 | struct reservation_object *resv = bo->tbo.resv; |
665 | 665 | ||
666 | if (shared) | 666 | if (shared) |
667 | reservation_object_add_shared_fence(resv, &fence->base); | 667 | reservation_object_add_shared_fence(resv, fence); |
668 | else | 668 | else |
669 | reservation_object_add_excl_fence(resv, &fence->base); | 669 | reservation_object_add_excl_fence(resv, fence); |
670 | } | 670 | } |