From 5631b3352e04b0ffc07bf48a097a9eafb60ae217 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 2 Aug 2022 12:07:59 -0400 Subject: [PATCH] agx: Lower more ALU operations Noticed while switching idiv lowerings. We could do better on some of these. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/asahi/compiler/agx_compile.h b/src/asahi/compiler/agx_compile.h index 978806d..e7b8163 100644 --- a/src/asahi/compiler/agx_compile.h +++ b/src/asahi/compiler/agx_compile.h @@ -268,6 +268,8 @@ static const nir_shader_compiler_options agx_nir_options = { .lower_fmod = true, .lower_ifind_msb = true, .lower_find_lsb = true, + .lower_uadd_carry = true, + .lower_usub_borrow = true, .lower_scmp = true, .lower_isign = true, .lower_fsign = true, @@ -275,6 +277,8 @@ static const nir_shader_compiler_options agx_nir_options = { .lower_fdph = true, .lower_ffract = true, .lower_pack_split = true, + .lower_extract_byte = true, + .lower_extract_word = true, .lower_insert_byte = true, .lower_insert_word = true, .lower_cs_local_index_to_id = true, -- 2.7.4