dzn: reset correct list
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Sun, 15 May 2022 09:46:05 +0000 (11:46 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 16 May 2022 07:20:37 +0000 (07:20 +0000)
commit0ef28ca34a3a86c6f778da73a2ea63b83eb1bdd9
tree19f5d90dbc57706063d3dcbd63e1c7a2a9bb5e62
parent875643feeb40d047cc3518c3b861d63200079e08
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>
src/microsoft/vulkan/dzn_descriptor_set.c