diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2015-08-19 04:41:19 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-25 10:38:41 -0400 |
commit | 4ce9891ee17c6e064cc334e3297f7e992d47f3a6 (patch) | |
tree | 402cc36ef6e4db0fc0158ae9cdcee6e9e7ff2445 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | 1aa4051b7f5474cca6009c13868c59d78d06f983 (diff) |
drm/amdgpu: improve sa_bo->fence by kernel fence
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian K?nig <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index 1c237f5e3365..13c5978ac69b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |||
@@ -93,8 +93,8 @@ int amdgpu_ib_get(struct amdgpu_ring *ring, struct amdgpu_vm *vm, | |||
93 | */ | 93 | */ |
94 | void amdgpu_ib_free(struct amdgpu_device *adev, struct amdgpu_ib *ib) | 94 | void amdgpu_ib_free(struct amdgpu_device *adev, struct amdgpu_ib *ib) |
95 | { | 95 | { |
96 | amdgpu_sync_free(adev, &ib->sync, ib->fence); | 96 | amdgpu_sync_free(adev, &ib->sync, &ib->fence->base); |
97 | amdgpu_sa_bo_free(adev, &ib->sa_bo, ib->fence); | 97 | amdgpu_sa_bo_free(adev, &ib->sa_bo, &ib->fence->base); |
98 | amdgpu_fence_unref(&ib->fence); | 98 | amdgpu_fence_unref(&ib->fence); |
99 | } | 99 | } |
100 | 100 | ||