diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 0d598e8a015..cff2321695c 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -266,10 +266,10 @@ radv_optimize_nir_algebraic_early(nir_shader *nir) NIR_PASS(progress, nir, nir_opt_peephole_select, &peephole_select_options); NIR_PASS(_, nir, nir_opt_undef); NIR_PASS(_, nir, nir_opt_phi_to_bool); - NIR_PASS(progress, nir, nir_opt_algebraic); NIR_PASS(_, nir, nir_opt_generate_bfi); NIR_PASS(progress, nir, nir_opt_remove_phis); NIR_PASS(progress, nir, nir_opt_dead_cf); + NIR_PASS(progress, nir, nir_opt_algebraic); if (!had_opt_fp_math_ctrl) { NIR_PASS(progress, nir, nir_opt_fp_math_ctrl);