mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-15 09:30:19 +01:00
anv/descriptor_set: Destroy sets before pool finalization
Fixes: 105002bd2d "anv: destroy descriptor sets when pool gets..."
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
fa1bbc00a6
commit
c8dbe93b0a
1 changed files with 2 additions and 2 deletions
|
|
@ -479,13 +479,13 @@ void anv_DestroyDescriptorPool(
|
|||
if (!pool)
|
||||
return;
|
||||
|
||||
anv_state_stream_finish(&pool->surface_state_stream);
|
||||
|
||||
list_for_each_entry_safe(struct anv_descriptor_set, set,
|
||||
&pool->desc_sets, pool_link) {
|
||||
anv_descriptor_set_destroy(device, pool, set);
|
||||
}
|
||||
|
||||
anv_state_stream_finish(&pool->surface_state_stream);
|
||||
|
||||
vk_free2(&device->alloc, pAllocator, pool);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue