From 425a702a89717949332f3ffaaa05088c2c51e7dd Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Fri, 1 Dec 2023 13:14:55 -0500 Subject: [PATCH] d3d12: Fix d3d12_tcs_variant_cache_destroy leak in d3d12_context Reviewed-by: Jesse Natalie Cc: mesa-stable Part-of: (cherry picked from commit 7bd6a42d1f2d0cf06d0be1a5ded3bd065c513317) --- .pick_status.json | 2 +- src/gallium/drivers/d3d12/d3d12_context.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index b7384d5..4e06969 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -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 diff --git a/src/gallium/drivers/d3d12/d3d12_context.cpp b/src/gallium/drivers/d3d12/d3d12_context.cpp index 8e0a775..85940d2 100644 --- a/src/gallium/drivers/d3d12/d3d12_context.cpp +++ b/src/gallium/drivers/d3d12/d3d12_context.cpp @@ -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); -- 2.7.4