d3d12: Fix d3d12_tcs_variant_cache_destroy leak in d3d12_context
authorSil Vilerino <sivileri@microsoft.com>
Fri, 1 Dec 2023 18:14:55 +0000 (13:14 -0500)
committerEric Engestrom <eric@engestrom.ch>
Fri, 8 Dec 2023 11:12:49 +0000 (11:12 +0000)
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 7bd6a42d1f2d0cf06d0be1a5ded3bd065c513317)

.pick_status.json
src/gallium/drivers/d3d12/d3d12_context.cpp

index b7384d5..4e06969 100644 (file)
         "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
index 8e0a775..85940d2 100644 (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);