mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
zink: destroy renderpass objects on context destroy
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9192>
This commit is contained in:
parent
3b9357727b
commit
90bcb91cd5
1 changed files with 3 additions and 0 deletions
|
|
@ -89,6 +89,9 @@ zink_context_destroy(struct pipe_context *pctx)
|
|||
vkDestroyCommandPool(screen->dev, ctx->compute_batch.cmdpool, NULL);
|
||||
}
|
||||
|
||||
hash_table_foreach(ctx->render_pass_cache, he)
|
||||
zink_destroy_render_pass(screen, he->data);
|
||||
|
||||
util_primconvert_destroy(ctx->primconvert);
|
||||
u_upload_destroy(pctx->stream_uploader);
|
||||
slab_destroy_child(&ctx->transfer_pool);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue