mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
anv: remove list items on batch fini
This doesn't seem to fix anything because those destroy() calls happen
right before the command buffer object & its list of batch_bo is also
destroyed. Still looks a bit cleaner.
v2: Found a second occurence
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (v2)
Fixes: 26ba0ad54d ("vk: Re-name command buffer implementation files")
Cc: <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
048f0690ee
commit
935f8f0e56
1 changed files with 4 additions and 1 deletions
|
|
@ -517,9 +517,11 @@ anv_batch_bo_list_clone(const struct list_head *list,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result != VK_SUCCESS) {
|
if (result != VK_SUCCESS) {
|
||||||
list_for_each_entry_safe(struct anv_batch_bo, bbo, new_list, link)
|
list_for_each_entry_safe(struct anv_batch_bo, bbo, new_list, link) {
|
||||||
|
list_del(&bbo->link);
|
||||||
anv_batch_bo_destroy(bbo, cmd_buffer);
|
anv_batch_bo_destroy(bbo, cmd_buffer);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
@ -843,6 +845,7 @@ anv_cmd_buffer_fini_batch_bo_chain(struct anv_cmd_buffer *cmd_buffer)
|
||||||
/* Destroy all of the batch buffers */
|
/* Destroy all of the batch buffers */
|
||||||
list_for_each_entry_safe(struct anv_batch_bo, bbo,
|
list_for_each_entry_safe(struct anv_batch_bo, bbo,
|
||||||
&cmd_buffer->batch_bos, link) {
|
&cmd_buffer->batch_bos, link) {
|
||||||
|
list_del(&bbo->link);
|
||||||
anv_batch_bo_destroy(bbo, cmd_buffer);
|
anv_batch_bo_destroy(bbo, cmd_buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue