zink: destroy current batch state after all other batch states
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 15 May 2023 14:02:44 +0000 (10:02 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 15 May 2023 20:51:40 +0000 (20:51 +0000)
commit58532057c56bfecad38bf589ee17139ab5757306
treecd71b12567038ce69b675c5cb9356aea8a4bc912
parentcd0454646fb07eb5cc673f3855d0e1c2b4c8032f
zink: destroy current batch state after all other batch states

some resources may not be destroyed immediately and may instead be
queued for deletion onto the current batch state, so ensure that the
current state is the last one to be destroyed so that all deferred resources
are also destroyed

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23033>
src/gallium/drivers/zink/zink_context.c