mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
radv: update inputs_read when lowering the view index
Otherwise inputs_read doesn't contain the information. This shouldn't fix anything in practice because radv_shader_info gathers this from the variable. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15337>
This commit is contained in:
parent
e5f3689cff
commit
42f84a5886
1 changed files with 3 additions and 0 deletions
|
|
@ -935,6 +935,9 @@ lower_view_index(nir_shader *nir)
|
|||
nir_ssa_def *def = nir_load_var(&b, layer);
|
||||
nir_ssa_def_rewrite_uses(&load->dest.ssa, def);
|
||||
|
||||
/* Update inputs_read to reflect that the pass added a new input. */
|
||||
nir->info.inputs_read |= VARYING_BIT_LAYER;
|
||||
|
||||
nir_instr_remove(instr);
|
||||
progress = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue