Mesa (main): dzn: reset correct list
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 16 07:27:26 UTC 2022
Module: Mesa
Branch: main
Commit: 0ef28ca34a3a86c6f778da73a2ea63b83eb1bdd9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ef28ca34a3a86c6f778da73a2ea63b83eb1bdd9
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Sun May 15 11:46:05 2022 +0200
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 at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16514>
---
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
More information about the mesa-commit
mailing list