From 21582016c5b8efa1bd4efc606cd5de5dcc0cfa40 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 12 Apr 2021 10:09:02 -0500 Subject: [PATCH] anv: Make memory type and queue family pointers const These point to data inside the instance so no one should be modifying them. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 7bb6fea3fe4..35bc5ba0cdf 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1071,7 +1071,7 @@ struct anv_queue { struct anv_device * device; VkDeviceQueueCreateFlags flags; - struct anv_queue_family * family; + const struct anv_queue_family * family; uint32_t exec_flags; @@ -1718,7 +1718,7 @@ struct anv_device_memory { struct list_head link; struct anv_bo * bo; - struct anv_memory_type * type; + const struct anv_memory_type * type; VkDeviceSize map_size; void * map;