mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
68bcc0ef5d
commit
bde0610c0f
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue