vulkan/cmd_queue: Fix the allocation scope
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 10 Mar 2022 17:22:59 +0000 (18:22 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Mar 2022 17:29:16 +0000 (17:29 +0000)
commit25542f12d764f7fd6d5ade4da760d09d0d93cf43
treed7429af84d8676ef1e3022f36cb7e1821fe69f6d
parent1437ee749b8a9fee05019582f570b167c0711116
vulkan/cmd_queue: Fix the allocation scope

VK_SYSTEM_ALLOCATION_SCOPE_COMMAND is used for transient allocations that
are not expected to live outside the vkXxx(). Use
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT for cmd_entry allocations.

v2 (Jason Ekstrand):
 - Also fix the manually typed entrypoints in vk_cmd_enqueue.c

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14406>
src/vulkan/runtime/vk_cmd_enqueue.c
src/vulkan/util/vk_cmd_queue_gen.py