mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 00:50:36 +02:00
turnip: Unconditionaly remove descriptor set from pool's list on free
We didn't remove desc set from the pool's list if pool was
host_memory_base. On the other hand in there is no point in removing
desc set from the list in DestroyDescriptorPool/ResetDescriptorPool.
Fixes: da7a4751
("turnip: Drop references to layout of all sets on pool reset/destruction")
Fixes cts tests:
dEQP-VK.api.buffer_marker.graphics.default_mem.bottom_of_pipe.memory_dep.draw
dEQP-VK.api.buffer_marker.graphics.default_mem.bottom_of_pipe.memory_dep.dispatch
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14855>
This commit is contained in:
parent
81061ed645
commit
183bc15bdb
1 changed files with 3 additions and 3 deletions
|
|
@ -589,8 +589,6 @@ tu_descriptor_set_destroy(struct tu_device *device,
|
|||
}
|
||||
}
|
||||
|
||||
list_del(&set->pool_link);
|
||||
|
||||
vk_object_free(&device->vk, NULL, set);
|
||||
}
|
||||
|
||||
|
|
@ -814,8 +812,10 @@ tu_FreeDescriptorSets(VkDevice _device,
|
|||
for (uint32_t i = 0; i < count; i++) {
|
||||
TU_FROM_HANDLE(tu_descriptor_set, set, pDescriptorSets[i]);
|
||||
|
||||
if (set)
|
||||
if (set) {
|
||||
tu_descriptor_set_layout_unref(device, set->layout);
|
||||
list_del(&set->pool_link);
|
||||
}
|
||||
|
||||
if (set && !pool->host_memory_base)
|
||||
tu_descriptor_set_destroy(device, pool, set, true);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue