mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-18 10:10:33 +01:00
ntv: run nir_remove_dead_variables during ntv_shader_prepare()
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40102>
This commit is contained in:
parent
a6928eb015
commit
49d07b9ae6
1 changed files with 1 additions and 0 deletions
|
|
@ -5649,6 +5649,7 @@ ntv_shader_prepare(nir_shader *nir)
|
|||
NIR_PASS(_, nir, nir_inline_functions);
|
||||
nir_cleanup_functions(nir);
|
||||
optimize_nir(nir);
|
||||
NIR_PASS(_, nir, nir_remove_dead_variables, nir_var_shader_temp, NULL);
|
||||
/* required until phi support is complete */
|
||||
NIR_PASS(_, nir, nir_convert_from_ssa, true, false);
|
||||
nir_foreach_variable_in_shader(var, nir) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue