Revert "radv: Only call nir_opt_dead_write_vars once"

This reverts commit bf0e04a531.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38624>
This commit is contained in:
Daniel Schürmann 2025-11-24 08:53:17 +01:00 committed by Marge Bot
parent 7db497c096
commit 6a35ab81b8

View file

@ -173,6 +173,7 @@ radv_optimize_nir(struct nir_shader *shader, bool optimize_conservatively)
NIR_LOOP_PASS(progress, skip, shader, nir_split_array_vars, nir_var_function_temp);
NIR_LOOP_PASS(progress, skip, shader, nir_shrink_vec_array_vars, nir_var_function_temp | nir_var_mem_shared);
NIR_LOOP_PASS(progress, skip, shader, nir_opt_copy_prop_vars);
NIR_LOOP_PASS(progress, skip, shader, nir_opt_dead_write_vars);
NIR_LOOP_PASS(_, skip, shader, nir_lower_phis_to_scalar, ac_nir_lower_phis_to_scalar_cb, NULL);
NIR_LOOP_PASS(progress, skip, shader, nir_opt_copy_prop);
@ -733,7 +734,6 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_shader_st
radv_optimize_nir(nir, false);
NIR_PASS(_, nir, nir_opt_dead_write_vars);
NIR_PASS(_, nir, nir_opt_memcpy);
}