vulkan: use instance allocator for `object_name` in some objects
authorantonino <antonino.maniscalco@collabora.com>
Mon, 6 Nov 2023 21:52:35 +0000 (22:52 +0100)
committerEric Engestrom <eric@engestrom.ch>
Mon, 13 Nov 2023 20:04:59 +0000 (20:04 +0000)
commita28ea69d0a54597f72be77f9c5ff6308fd15071f
treec60ec044b4167b261fdb9e3ec28871bd0d0d31c4
parentc6a9afc57a96815391a3adba6b7b3ffcc8d2345d
vulkan: use instance allocator for `object_name` in some objects

The allocator passed to VkDevice won't be available once it is destroyed
and thefore it cannot be used to allocate `object_name` for instance
level objects such as `VkInstance` or `VkPhysicalDevice` or else there
would be no way of deallocating it when those objects are destroyed.

Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26085>
(cherry picked from commit 2d49f834b20d705d901414f6fc2b1fec019689c4)
.pick_status.json
src/vulkan/runtime/vk_debug_report.c
src/vulkan/runtime/vk_debug_utils.c
src/vulkan/runtime/vk_instance.c
src/vulkan/runtime/vk_object.c
src/vulkan/runtime/vk_object.h
src/vulkan/runtime/vk_physical_device.c