mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 21:10:24 +01:00
zink: free GPL input/output libs on context destroy to avoid leaking
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22397>
(cherry picked from commit a81a101159)
This commit is contained in:
parent
78f9426f88
commit
60fd425cae
2 changed files with 9 additions and 1 deletions
|
|
@ -4244,7 +4244,7 @@
|
|||
"description": "zink: free GPL input/output libs on context destroy to avoid leaking",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -167,6 +167,14 @@ zink_context_destroy(struct pipe_context *pctx)
|
|||
zink_destroy_render_pass(screen, he->data);
|
||||
|
||||
zink_context_destroy_query_pools(ctx);
|
||||
set_foreach(&ctx->gfx_inputs, he) {
|
||||
struct zink_gfx_input_key *ikey = (void*)he->key;
|
||||
VKSCR(DestroyPipeline)(screen->dev, ikey->pipeline, NULL);
|
||||
}
|
||||
set_foreach(&ctx->gfx_outputs, he) {
|
||||
struct zink_gfx_output_key *okey = (void*)he->key;
|
||||
VKSCR(DestroyPipeline)(screen->dev, okey->pipeline, NULL);
|
||||
}
|
||||
u_upload_destroy(pctx->stream_uploader);
|
||||
u_upload_destroy(pctx->const_uploader);
|
||||
slab_destroy_child(&ctx->transfer_pool);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue