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>
This commit is contained in:
Paulo Zanoni
2022-12-12 15:17:39 -08:00
parent 1358622878
commit e930bff19e
2 changed files with 0 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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;
};