radeonsi: recompute FS output IO bases to prevent an LLVM crash

Fixes: 7a506d0a41 - glsl: remove gl_nir_opt_dead_builtin_varyings

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35950>
This commit is contained in:
Marek Olšák 2025-07-12 01:52:34 -04:00 committed by Marge Bot
parent 68bcc0ef5d
commit bde0610c0f

View file

@ -390,8 +390,10 @@ void si_finalize_nir(struct pipe_screen *screen, struct nir_shader *nir)
NIR_PASS(_, nir, nir_remove_dead_variables, nir_var_shader_in | nir_var_shader_out, NULL);
}
if (nir->info.stage == MESA_SHADER_FRAGMENT)
if (nir->info.stage == MESA_SHADER_FRAGMENT) {
NIR_PASS(_, nir, si_nir_lower_color_inputs_to_sysvals);
NIR_PASS(_, nir, nir_recompute_io_bases, nir_var_shader_out);
}
NIR_PASS(_, nir, nir_lower_explicit_io, nir_var_mem_shared, nir_address_format_32bit_offset);