From e930bff19e7721fefe7c827a85e3cc9871531743 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Mon, 12 Dec 2022 15:17:39 -0800 Subject: [PATCH] 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 Reviewed-by: Lionel Landwerlin Signed-off-by: Paulo Zanoni Part-of: --- src/intel/vulkan/anv_batch_chain.c | 1 - src/intel/vulkan/anv_private.h | 1 - 2 files changed, 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; };