From 03a80490a47b0b616566c6f56581560694976b1a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 23 Feb 2022 12:36:30 -0500 Subject: [PATCH] zink: free push descriptor pools on deinit these are owned by the context, so destroy them when the context requests destruction cc: mesa-stable Reviewed-by: Emma Anholt Part-of: --- src/gallium/drivers/zink/zink_descriptors.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_descriptors.c b/src/gallium/drivers/zink/zink_descriptors.c index 6fa5f49..61da3fd 100644 --- a/src/gallium/drivers/zink/zink_descriptors.c +++ b/src/gallium/drivers/zink/zink_descriptors.c @@ -1081,6 +1081,8 @@ zink_descriptor_pool_deinit(struct zink_context *ctx) /* do not free: programs own these pools */ _mesa_hash_table_destroy(ctx->dd->descriptor_pools[i], NULL); } + descriptor_pool_free(zink_screen(ctx->base.screen), ctx->dd->push_pool[0]); + descriptor_pool_free(zink_screen(ctx->base.screen), ctx->dd->push_pool[1]); } static bool -- 2.7.4