nvk: Free owned_gart_mem correctly

Fixes: fbe171638e ("nvk: add gart forced cmd pool side buffer.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34127>
(cherry picked from commit 90b2137ac5)
This commit is contained in:
Faith Ekstrand 2025-03-12 11:25:47 -05:00 committed by Eric Engestrom
parent 558a7d92d5
commit c84a792c96
2 changed files with 2 additions and 2 deletions

View file

@ -2304,7 +2304,7 @@
"description": "nvk: Free owned_gart_mem correctly",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "fbe171638ebb2eb8d60b853e921902c068c5be98",
"notes": null

View file

@ -48,7 +48,7 @@ nvk_destroy_cmd_buffer(struct vk_command_buffer *vk_cmd_buffer)
nvk_descriptor_state_fini(cmd, &cmd->state.cs.descriptors);
nvk_cmd_pool_free_mem_list(pool, &cmd->owned_mem);
nvk_cmd_pool_free_mem_list(pool, &cmd->owned_gart_mem);
nvk_cmd_pool_free_gart_mem_list(pool, &cmd->owned_gart_mem);
util_dynarray_fini(&cmd->pushes);
vk_command_buffer_finish(&cmd->vk);
vk_free(&pool->vk.alloc, cmd);