diff options
author | Christian König <christian.koenig@amd.com> | 2016-02-16 11:39:39 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-03-08 11:01:48 -0500 |
commit | 364beb2cc45247e980a097e53d0932e143873333 (patch) | |
tree | 01aa4a62683d8d35a5c7908b1774e02bbb62dcf3 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | 257bf15a4b9795f8b352beb6e72a7e3e5aab8d27 (diff) |
drm/amdgpu: return the common fence from amdgpu_fence_emit
Try to avoid using the hardware specific fences even more.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index 9550247b030d..979c445f8096 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |||
@@ -90,9 +90,8 @@ int amdgpu_ib_get(struct amdgpu_device *adev, struct amdgpu_vm *vm, | |||
90 | */ | 90 | */ |
91 | void amdgpu_ib_free(struct amdgpu_device *adev, struct amdgpu_ib *ib) | 91 | void amdgpu_ib_free(struct amdgpu_device *adev, struct amdgpu_ib *ib) |
92 | { | 92 | { |
93 | amdgpu_sa_bo_free(adev, &ib->sa_bo, &ib->fence->base); | 93 | amdgpu_sa_bo_free(adev, &ib->sa_bo, ib->fence); |
94 | if (ib->fence) | 94 | fence_put(ib->fence); |
95 | fence_put(&ib->fence->base); | ||
96 | } | 95 | } |
97 | 96 | ||
98 | /** | 97 | /** |
@@ -198,7 +197,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs, | |||
198 | } | 197 | } |
199 | 198 | ||
200 | if (f) | 199 | if (f) |
201 | *f = fence_get(&ib->fence->base); | 200 | *f = fence_get(ib->fence); |
202 | 201 | ||
203 | amdgpu_ring_commit(ring); | 202 | amdgpu_ring_commit(ring); |
204 | return 0; | 203 | return 0; |