From: Samuel Pitoiset Date: Thu, 8 Mar 2018 14:31:14 +0000 (+0100) Subject: radv: run nir_opt_move_load_ubo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e96a1d27dc69b039575f912d6705546b9c7b3141;p=mesa.git radv: run nir_opt_move_load_ubo Polaris10: SGPRS: 108560 -> 107856 (-0.65 %) VGPRS: 74576 -> 74520 (-0.08 %) Spilled SGPRs: 7375 -> 7113 (-3.55 %) Code Size: 4273464 -> 4274364 (0.02 %) bytes Max Waves: 9434 -> 9446 (0.13 %) Vega10: Totals from affected shaders: SGPRS: 108264 -> 107576 (-0.64 %) VGPRS: 69068 -> 69000 (-0.10 %) Spilled SGPRs: 7221 -> 6959 (-3.63 %) Code Size: 3800796 -> 3801496 (0.02 %) bytes Max Waves: 10687 -> 10709 (0.21 %) Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 704461e02cb..180b427a442 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -152,6 +152,7 @@ radv_optimize_nir(struct nir_shader *shader) } while (progress); NIR_PASS(progress, shader, nir_opt_shrink_load); + NIR_PASS(progress, shader, nir_opt_move_load_ubo); } nir_shader *