From 90bcb91cd5389201cd10a44b86d091e08ba0f7f7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sun, 21 Feb 2021 12:07:56 -0500 Subject: [PATCH] zink: destroy renderpass objects on context destroy Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 815909ddfdb..12f9039e0ec 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -89,6 +89,9 @@ zink_context_destroy(struct pipe_context *pctx) vkDestroyCommandPool(screen->dev, ctx->compute_batch.cmdpool, NULL); } + hash_table_foreach(ctx->render_pass_cache, he) + zink_destroy_render_pass(screen, he->data); + util_primconvert_destroy(ctx->primconvert); u_upload_destroy(pctx->stream_uploader); slab_destroy_child(&ctx->transfer_pool);