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:
committed by
Marge Bot
parent
e5f3689cff
commit
42f84a5886
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user