turnip: Lower usub_borrow.
authorEric Anholt <eric@anholt.net>
Wed, 27 Nov 2019 18:43:54 +0000 (10:43 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Dec 2019 04:52:09 +0000 (04:52 +0000)
Fixes dEQP-VK.glsl.builtin.function.integer.usubborrow.uvec2_mediump_fragment.

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2986>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2986>

src/freedreno/ir3/ir3_nir.c

index 5af50c45b9c555872ecedbc4283a0d49340bdc10..17db07616e8ca298413d423e0b47b3098ef9737c 100644 (file)
@@ -46,6 +46,7 @@ static const nir_shader_compiler_options options = {
                .lower_isign = true,
                .lower_ldexp = true,
                .lower_uadd_carry = true,
+               .lower_usub_borrow = true,
                .lower_mul_high = true,
                .fuse_ffma = true,
                .vertex_id_zero_based = true,
@@ -74,6 +75,7 @@ static const nir_shader_compiler_options options_a6xx = {
                .lower_isign = true,
                .lower_ldexp = true,
                .lower_uadd_carry = true,
+               .lower_usub_borrow = true,
                .lower_mul_high = true,
                .fuse_ffma = true,
                .vertex_id_zero_based = false,