winsys/amdgpu: unmap user fence BO before destroy

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27412>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2024-01-29 21:41:43 +01:00
parent 6c3a294eef
commit f7facda322

View File

@@ -188,6 +188,7 @@ static inline void amdgpu_ctx_reference(struct amdgpu_ctx **dst, struct amdgpu_c
if (pipe_reference(old_dst ? &old_dst->reference : NULL,
src ? &src->reference : NULL)) {
amdgpu_cs_ctx_free(old_dst->ctx);
amdgpu_bo_cpu_unmap(old_dst->user_fence_bo);
amdgpu_bo_free(old_dst->user_fence_bo);
FREE(old_dst);
}