vulkan/cmd_queue: Constify vk_cmd_queue.alloc
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 2 Feb 2022 13:00:33 +0000 (14:00 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Mar 2022 15:52:10 +0000 (15:52 +0000)
The implementation shouldn't modify the allocator.

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/15311>

src/vulkan/util/vk_cmd_queue_gen.py

index 22d6a8f..5f1e409 100644 (file)
@@ -59,7 +59,7 @@ extern "C" {
 #endif
 
 struct vk_cmd_queue {
-   VkAllocationCallbacks *alloc;
+   const VkAllocationCallbacks *alloc;
    struct list_head cmds;
 };