[Mesa-dev] [PATCH 2/2] radv: enable lowering of minmax3

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed May 30 17:06:45 UTC 2018


Polaris10:
Totals from affected shaders:
SGPRS: 95672 -> 95808 (0.14 %)
VGPRS: 91224 -> 90840 (-0.42 %)
Spilled SGPRs: 3754 -> 3734 (-0.53 %)
Code Size: 7384156 -> 7372872 (-0.15 %) bytes
Max Waves: 7408 -> 7433 (0.34 %)

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_shader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 84ad215ccb..a9626c7fde 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -69,6 +69,7 @@ static const struct nir_shader_compiler_options nir_options = {
 	.lower_extract_word = true,
 	.lower_ffma = true,
 	.lower_fpow = true,
+	.lower_minmax3 = true,
 	.vs_inputs_dual_locations = true,
 	.max_unroll_iterations = 32
 };
-- 
2.17.0



More information about the mesa-dev mailing list