if shaders are found in the app cache above, execution will goto done:
and the nir must still be freed
Fixes:
03d2bd6042d ("radv: ensure to retain NIR shaders for GPL libs found in the cache")
fixes #8786
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22317>
if (radv_can_dump_shader_stats(device, stages[i].nir) && pipeline->base.shaders[i]) {
radv_dump_shader_stats(device, &pipeline->base, pipeline->base.shaders[i], i, stderr);
}
-
- ralloc_free(stages[i].nir);
}
}
done:
+ for (int i = 0; i < MESA_VULKAN_SHADER_STAGES; ++i) {
+ ralloc_free(stages[i].nir);
+ }
pipeline_feedback.duration = os_time_get_nano() - pipeline_start;
if (creation_feedback) {