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:

committed by
Marge Bot

parent
06e0c05842
commit
2d46cc76c7
@@ -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)
|
||||
|
Reference in New Issue
Block a user