Module: Mesa
Branch: master
Commit: 21582016c5b8efa1bd4efc606cd5de5dcc0cfa40
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=21582016c5b8efa1bd4efc606cd5de5dcc0cfa40

Author: Jason Ekstrand <[email protected]>
Date:   Mon Apr 12 10:09:02 2021 -0500

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10184>

---

 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;
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to