From: Daniel Schürmann Date: Wed, 25 Sep 2019 14:34:29 +0000 (+0200) Subject: radv/aco: Don't lower subtractions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0fb27f1e5a1ea35e46352d7ea176d329ac90e3c2;p=mesa.git radv/aco: Don't lower subtractions 40228 shaders in 20236 tests Totals: SGPRS: 2045512 -> 2046496 (0.05 %) VGPRS: 1430856 -> 1430464 (-0.03 %) Spilled SGPRs: 1077 -> 1077 (0.00 %) Spilled VGPRs: 0 -> 0 (0.00 %) Private memory VGPRs: 0 -> 0 (0.00 %) Scratch size: 10348 -> 10348 (0.00 %) dwords per thread Code Size: 77202840 -> 77151832 (-0.07 %) bytes LDS: 863 -> 863 (0.00 %) blocks Max Waves: 260729 -> 260754 (0.01 %) Reviewed-by: Eric Anholt Reviewed-by: Connor Abbott --- diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 086f7cd8616..5fe361d44cf 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -92,7 +92,6 @@ static const struct nir_shader_compiler_options nir_options_aco = { .lower_fdiv = true, .lower_bitfield_insert_to_bitfield_select = true, .lower_bitfield_extract = true, - .lower_sub = true, /* TODO: set this to false once !1236 is merged */ .lower_pack_snorm_2x16 = true, .lower_pack_snorm_4x8 = true, .lower_pack_unorm_2x16 = true,