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 <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10184>
This commit is contained in:
parent
544044b29e
commit
21582016c5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue