From aa77fc309a87bc263ebacaa9c69cd623ba5c7e23 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Wed, 28 Aug 2019 23:09:38 -0700 Subject: [PATCH] lima/ppir: don't lower phis to scalar Utgard PP is vec4 architecture, so lowering phis to scalars increases instruction count and potentially interferes with spilling. Tested-by: Andreas Baierl Reviewed-by: Eric Anholt Signed-off-by: Vasily Khoruzhick --- src/gallium/drivers/lima/lima_program.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c index 4bfcd7e..6a8b51d 100644 --- a/src/gallium/drivers/lima/lima_program.c +++ b/src/gallium/drivers/lima/lima_program.c @@ -209,7 +209,6 @@ lima_program_optimize_fs_nir(struct nir_shader *s) NIR_PASS_V(s, nir_lower_vars_to_ssa); NIR_PASS(progress, s, nir_lower_alu_to_scalar, lima_alu_to_scalar_filter_cb, NULL); - NIR_PASS(progress, s, nir_lower_phis_to_scalar); NIR_PASS(progress, s, nir_copy_prop); NIR_PASS(progress, s, nir_opt_remove_phis); NIR_PASS(progress, s, nir_opt_dce); -- 2.7.4