aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <[email protected]>2020-06-03 11:13:35 -0400
committerMarge Bot <[email protected]>2020-07-18 07:51:37 +0000
commit1ff2d195b04f6d258d7d804590ad83946af1de8a (patch)
tree76a37199cf083cd4a5fa37cf2df76bbf79c48b63
parent7116decfce3a6d6cff2dee3f18ec29796abfbcd5 (diff)
zink: destroy descriptor pools on context destroy
this is a big leak Reviewed-by: Antonio Caggiano <[email protected]> Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5887>
-rw-r--r--src/gallium/drivers/zink/zink_context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index a9cbd929e4a..792027ceb93 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -61,8 +61,10 @@ zink_context_destroy(struct pipe_context *pctx)
for (unsigned i = 0; i < ARRAY_SIZE(ctx->null_buffers); i++)
pipe_resource_reference(&ctx->null_buffers[i], NULL);
- for (int i = 0; i < ARRAY_SIZE(ctx->batches); ++i)
+ for (int i = 0; i < ARRAY_SIZE(ctx->batches); ++i) {
+ vkDestroyDescriptorPool(screen->dev, ctx->batches[i].descpool, NULL);
vkFreeCommandBuffers(screen->dev, ctx->cmdpool, 1, &ctx->batches[i].cmdbuf);
+ }
vkDestroyCommandPool(screen->dev, ctx->cmdpool, NULL);
util_primconvert_destroy(ctx->primconvert);