Mesa (master): zink: release batch memory

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 5 15:41:15 UTC 2021


Module: Mesa
Branch: master
Commit: f70490bf4279dadcc87470c5f7f3de200beefc8e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f70490bf4279dadcc87470c5f7f3de200beefc8e

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Tue Dec 15 10:38:07 2020 +0100

zink: release batch memory

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8099>

---

 src/gallium/drivers/zink/zink_context.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 52bfd970c9f..c5786ee31cf 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -65,6 +65,8 @@ zink_context_destroy(struct pipe_context *pctx)
       pipe_resource_reference(&ctx->null_buffers[i], NULL);
 
    for (int i = 0; i < ARRAY_SIZE(ctx->batches); ++i) {
+      zink_batch_release(screen, &ctx->batches[i]);
+      util_dynarray_fini(&ctx->batches[i].zombie_samplers);
       vkDestroyDescriptorPool(screen->dev, ctx->batches[i].descpool, NULL);
       vkFreeCommandBuffers(screen->dev, ctx->cmdpool, 1, &ctx->batches[i].cmdbuf);
    }



More information about the mesa-commit mailing list