zink: use zink_destroy_shader_module() for compute to deduplicate code

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22725>
This commit is contained in:
Mike Blumenkrantz
2023-04-03 15:39:59 -04:00
committed by Marge Bot
parent 6ae2c62b7c
commit a3730531af

View File

@@ -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);
}