diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2022-12-12 15:17:39 -0800 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2022-12-14 10:44:31 -0800 |
commit | e930bff19e7721fefe7c827a85e3cc9871531743 (patch) | |
tree | 6478a96b69311006590eb44f780a3c94de6db201 | |
parent | 1358622878bd3d20b98ee6df80a1d58c1ae7fa20 (diff) |
anv: remove anv_reloc_list->array_length
This is another field that, after the recent commits, became unused.
It's either zero-initialized (by the memset) or copy-initialized
(which means it's also zero). And it never even gets used anywhere
anyway, so even if the value was non-zero it wouldn't matter.
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20309>
-rw-r--r-- | src/intel/vulkan/anv_batch_chain.c | 1 | ||||
-rw-r--r-- | src/intel/vulkan/anv_private.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index a638b552ba1..0f57f6a95cf 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -66,7 +66,6 @@ anv_reloc_list_init_clone(struct anv_reloc_list *list, const VkAllocationCallbacks *alloc, const struct anv_reloc_list *other_list) { - list->array_length = other_list->array_length; list->dep_words = other_list->dep_words; if (list->dep_words > 0) { diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 5ef57045544..18428c7fcee 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1394,7 +1394,6 @@ void anv_vma_free(struct anv_device *device, uint64_t address, uint64_t size); struct anv_reloc_list { - uint32_t array_length; uint32_t dep_words; BITSET_WORD * deps; }; |