mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 03:50:32 +01:00
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:
parent
06e0c05842
commit
2d46cc76c7
1 changed files with 0 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue