d3d12: Fix d3d12_tcs_variant_cache_destroy leak in d3d12_context

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456>
(cherry picked from commit 7bd6a42d1f)
This commit is contained in:
Sil Vilerino 2023-12-01 13:14:55 -05:00 committed by Eric Engestrom
parent f776553f4d
commit 425a702a89
2 changed files with 2 additions and 1 deletions

View file

@ -2534,7 +2534,7 @@
"description": "d3d12: Fix d3d12_tcs_variant_cache_destroy leak in d3d12_context",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -105,6 +105,7 @@ d3d12_context_destroy(struct pipe_context *pctx)
slab_destroy_child(&ctx->transfer_pool);
slab_destroy_child(&ctx->transfer_pool_unsync);
d3d12_gs_variant_cache_destroy(ctx);
d3d12_tcs_variant_cache_destroy(ctx);
d3d12_gfx_pipeline_state_cache_destroy(ctx);
d3d12_compute_pipeline_state_cache_destroy(ctx);
d3d12_root_signature_cache_destroy(ctx);