From 9579df6a7ffc2116623cd3d2d9517dabe770cfe4 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 8 Mar 2022 12:12:21 -0500 Subject: [PATCH] zink: run nir_lower_phis_to_scalar in optimization loop fixes (lavapipe): dEQP-GLES3.functional.shaders.switch.switch_in_do_while_loop_dynamic* Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_compiler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index ec6aef06d17..46869b64ef5 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -387,6 +387,7 @@ optimize_nir(struct nir_shader *s) NIR_PASS(progress, s, nir_opt_remove_phis); NIR_PASS(progress, s, nir_opt_dce); NIR_PASS(progress, s, nir_opt_dead_cf); + NIR_PASS(progress, s, nir_lower_phis_to_scalar, false); NIR_PASS(progress, s, nir_opt_cse); NIR_PASS(progress, s, nir_opt_peephole_select, 8, true, true); NIR_PASS(progress, s, nir_opt_algebraic);