mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 12:20:10 +01:00
nir/linking_helpers: invalidate metadata in nir_link_opt_varyings
nir_instr_insert and nir_def_init invalidate nir_metadata_instr_index and nir_metadata_live_defs, but not nir_metadata_loop_analysis Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33354>
This commit is contained in:
parent
ebf8e072b4
commit
0a04200ba7
1 changed files with 9 additions and 0 deletions
|
|
@ -1074,6 +1074,9 @@ replace_varying_input_by_constant_load(nir_shader *shader,
|
|||
}
|
||||
}
|
||||
|
||||
if (progress)
|
||||
nir_metadata_preserve(impl, nir_metadata_control_flow);
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
||||
|
|
@ -1120,6 +1123,9 @@ replace_duplicate_input(nir_shader *shader, nir_variable *input_var,
|
|||
}
|
||||
}
|
||||
|
||||
if (progress)
|
||||
nir_metadata_preserve(impl, nir_metadata_control_flow);
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
||||
|
|
@ -1285,6 +1291,9 @@ replace_varying_input_by_uniform_load(nir_shader *shader,
|
|||
}
|
||||
}
|
||||
|
||||
if (progress)
|
||||
nir_metadata_preserve(impl, nir_metadata_control_flow);
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue