From 0ef28ca34a3a86c6f778da73a2ea63b83eb1bdd9 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Sun, 15 May 2022 11:46:05 +0200 Subject: [PATCH] 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 Part-of: --- src/microsoft/vulkan/dzn_descriptor_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsoft/vulkan/dzn_descriptor_set.c b/src/microsoft/vulkan/dzn_descriptor_set.c index 0813c592e89..f884baf4a26 100644 --- a/src/microsoft/vulkan/dzn_descriptor_set.c +++ b/src/microsoft/vulkan/dzn_descriptor_set.c @@ -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