From f58ef5d4814f3d12d319daedb270d89aaa62bdeb Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 27 Nov 2019 10:43:54 -0800 Subject: [PATCH] turnip: Lower usub_borrow. Fixes dEQP-VK.glsl.builtin.function.integer.usubborrow.uvec2_mediump_fragment. Reviewed-by: Jonathan Marek Tested-by: Marge Bot Part-of: --- src/freedreno/ir3/ir3_nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c index 5af50c45b9c..17db07616e8 100644 --- a/src/freedreno/ir3/ir3_nir.c +++ b/src/freedreno/ir3/ir3_nir.c @@ -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, -- 2.30.2