From: Mike Blumenkrantz Date: Mon, 3 Apr 2023 19:39:59 +0000 (-0400) Subject: zink: use zink_destroy_shader_module() for compute to deduplicate code X-Git-Tag: upstream/23.3.3~9434 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3730531affcbdcbf2514da5495c82b9dd3c7f32;p=platform%2Fupstream%2Fmesa.git zink: use zink_destroy_shader_module() for compute to deduplicate code Part-of: --- diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c index b7b54cd..2b5b2a0 100644 --- a/src/gallium/drivers/zink/zink_program.c +++ b/src/gallium/drivers/zink/zink_program.c @@ -1528,8 +1528,7 @@ zink_destroy_compute_program(struct zink_screen *screen, free(pc_entry); } VKSCR(DestroyPipeline)(screen->dev, comp->base_pipeline, NULL); - VKSCR(DestroyShaderModule)(screen->dev, comp->module->obj.mod, NULL); - free(comp->module); + zink_destroy_shader_module(screen, comp->module); ralloc_free(comp); }