anv: remove anv_reloc_list->reloc_bos
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 12 Dec 2022 23:15:38 +0000 (15:15 -0800)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 14 Dec 2022 18:44:31 +0000 (10:44 -0800)
As a consequence of the last two commits, reloc_bos is always NULL and
never used anywhere, so remove it.

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>

src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/anv_private.h

index 08cac73..a638b55 100644 (file)
@@ -67,7 +67,6 @@ anv_reloc_list_init_clone(struct anv_reloc_list *list,
                           const struct anv_reloc_list *other_list)
 {
    list->array_length = other_list->array_length;
-   list->reloc_bos = NULL;
    list->dep_words = other_list->dep_words;
 
    if (list->dep_words > 0) {
@@ -87,7 +86,6 @@ void
 anv_reloc_list_finish(struct anv_reloc_list *list,
                       const VkAllocationCallbacks *alloc)
 {
-   vk_free(alloc, list->reloc_bos);
    vk_free(alloc, list->deps);
 }
 
index 358d9a9..5ef5704 100644 (file)
@@ -1395,7 +1395,6 @@ void anv_vma_free(struct anv_device *device,
 
 struct anv_reloc_list {
    uint32_t                                     array_length;
-   struct anv_bo **                             reloc_bos;
    uint32_t                                     dep_words;
    BITSET_WORD *                                deps;
 };