lima/ppir: don't lower phis to scalar
authorVasily Khoruzhick <anarsoul@gmail.com>
Thu, 29 Aug 2019 06:09:38 +0000 (23:09 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Fri, 6 Sep 2019 02:29:16 +0000 (19:29 -0700)
Utgard PP is vec4 architecture, so lowering phis to scalars
increases instruction count and potentially interferes with
spilling.

Tested-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_program.c

index 4bfcd7e87dcc873334d52de457095b300a2335ff..6a8b51db9a7030fd5cc1893d3da89b5ea5ac5655 100644 (file)
@@ -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);