mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +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> (cherry picked from commitbde0610c0f)
This commit is contained in:
parent
b79620d064
commit
3d97cd6961
2 changed files with 4 additions and 2 deletions
|
|
@ -2524,7 +2524,7 @@
|
|||
"description": "radeonsi: recompute FS output IO bases to prevent an LLVM crash",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "7a506d0a4145dd74a48affa1b08bfefd53d94a04",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -390,8 +390,10 @@ char *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