radv/llvm: do not lower sub
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 30 Sep 2020 13:19:59 +0000 (15:19 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 9 Oct 2020 09:06:34 +0000 (11:06 +0200)
To match ACO.

Totals from 268 (0.20% of 136420) affected shaders:
CodeSize: 1214060 -> 1214096 (+0.00%); split: -0.05%, +0.06%

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6938>

src/amd/vulkan/radv_shader.c

index d9a7d78..e2dbc83 100644 (file)
@@ -58,7 +58,6 @@ static const struct nir_shader_compiler_options nir_options_llvm = {
        .lower_fmod = true,
        .lower_bitfield_insert_to_bitfield_select = true,
        .lower_bitfield_extract = true,
-       .lower_sub = true,
        .lower_pack_snorm_2x16 = true,
        .lower_pack_snorm_4x8 = true,
        .lower_pack_unorm_2x16 = true,