dzn: reset correct list

It makes no sense to add the active heaps to the free heaps, just to
remove them again. Instead, let's move them from the one list to the
other.

This fixes a crash in Doom 2016 after a while, due to resource
exhaustion.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16514>
This commit is contained in:
Erik Faye-Lund
2022-05-15 11:46:05 +02:00
committed by Marge Bot
parent 875643feeb
commit 0ef28ca34a
+1 -1
View File
@@ -1556,7 +1556,7 @@ dzn_descriptor_heap_pool_reset(struct dzn_descriptor_heap_pool *pool)
{
pool->offset = 0;
list_splicetail(&pool->active_heaps, &pool->free_heaps);
list_inithead(&pool->free_heaps);
list_inithead(&pool->active_heaps);
}
VKAPI_ATTR VkResult VKAPI_CALL