mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 03:28:09 +02:00
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:
parent
6c3a294eef
commit
f7facda322
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue