From 2d46cc76c7b219578492dcbcff0cd72a970f5aa0 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 11 Aug 2022 16:45:23 -0400 Subject: [PATCH] zink: allow programs to solely manage descriptor deinit now that there's no context access, this is perfectly safe and also much simpler Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_context.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 1832a34667d..54a8561ea9b 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -100,13 +100,11 @@ zink_context_destroy(struct pipe_context *pctx) hash_table_foreach(&ctx->program_cache[i], entry) { struct zink_program *pg = entry->data; pg->removed = true; - zink_descriptor_program_deinit(screen, pg); } } hash_table_foreach(&ctx->compute_program_cache, entry) { struct zink_program *pg = entry->data; pg->removed = true; - zink_descriptor_program_deinit(screen, pg); } if (ctx->blitter)