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 <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18197>
This commit is contained in:
Mike Blumenkrantz
2022-08-11 16:45:23 -04:00
committed by Marge Bot
parent 06e0c05842
commit 2d46cc76c7

View File

@@ -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)