From 60121e3a427ce88b8364de909e01fea0207060af Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 3 Feb 2023 16:21:01 -0500 Subject: [PATCH] asahi: Fix delete_vs_state implementation The generic free won't delete the shader variants, leaking them all! Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index e321875..e320099 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -2458,7 +2458,7 @@ agx_init_state_functions(struct pipe_context *ctx) ctx->delete_rasterizer_state = agx_delete_state; ctx->delete_sampler_state = agx_delete_sampler_state; ctx->delete_vertex_elements_state = agx_delete_state; - ctx->delete_vs_state = agx_delete_state; + ctx->delete_vs_state = agx_delete_shader_state; ctx->set_blend_color = agx_set_blend_color; ctx->set_clip_state = agx_set_clip_state; ctx->set_constant_buffer = agx_set_constant_buffer; -- 2.7.4