Skip to content

tu: fix memory leaks in tu_shader

Zan Dobersek requested to merge zdobersek/mesa-fork:tu_shader_mem into main

What does this MR do and why?

tu: fix memory leaks in tu_shader

When tu_shader object is destroyed through vk_pipeline_cache, the relevant
destroy callback should relay to the general tu_shader_destroy function
that will also clean up owned resources.

During shader creation, the ir3_shader object should be destroyed once the
shader variants are retrieved. Since those variants are owned by tu_shader
they should be freed up in tu_shader_destroy.

Signed-off-by: Zan Dobersek <zdobersek@igalia.com>

Merge request reports