From f70490bf4279dadcc87470c5f7f3de200beefc8e Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 15 Dec 2020 10:38:07 +0100 Subject: [PATCH] zink: release batch memory Reviewed-By: Mike Blumenkrantz Part-of: --- 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); }