From ad259482610048e0e3cc8fc0cacd4581f1256b5d Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 8 Mar 2019 18:42:22 -0500 Subject: [PATCH] freedreno/ir3: turn on [iu]mul_high Which also requires uadd_carry lowering Until recently this was lowered in glsl ir so it went unnoticed that we weren't lowering it. Fixes: 1d8994a63b5 glsl: [u/i]mulExtended optimization for GLSL Signed-off-by: Rob Clark --- src/freedreno/ir3/ir3_nir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c index 4f5fe5dfd65..57595e00306 100644 --- a/src/freedreno/ir3/ir3_nir.c +++ b/src/freedreno/ir3/ir3_nir.c @@ -42,6 +42,8 @@ static const nir_shader_compiler_options options = { .lower_fdiv = true, .lower_isign = true, .lower_ldexp = true, + .lower_uadd_carry = true, + .lower_mul_high = true, .fuse_ffma = true, .native_integers = true, .vertex_id_zero_based = true, @@ -63,6 +65,8 @@ static const nir_shader_compiler_options options_a6xx = { .lower_fdiv = true, .lower_isign = true, .lower_ldexp = true, + .lower_uadd_carry = true, + .lower_mul_high = true, .fuse_ffma = true, .native_integers = true, .vertex_id_zero_based = false, -- 2.30.2