From 3789dba5f6af144ec7e9ea8c6f5d3b96c4015e82 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 7 Nov 2022 20:00:17 -0500 Subject: [PATCH] agx: Lower packs/unpacks and bitfields Needed for GLES3. These could be optimized. 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 df770bd90e6..477d52d7605 100644 --- a/src/asahi/compiler/agx_compile.h +++ b/src/asahi/compiler/agx_compile.h @@ -292,6 +292,8 @@ static const nir_shader_compiler_options agx_nir_options = { .lower_flrp32 = true, .lower_fpow = true, .lower_fmod = true, + .lower_bitfield_extract_to_shifts = true, + .lower_bitfield_insert_to_shifts = true, .lower_ifind_msb = true, .lower_find_lsb = true, .lower_uadd_carry = true, @@ -302,6 +304,8 @@ static const nir_shader_compiler_options agx_nir_options = { .lower_iabs = true, .lower_fdph = true, .lower_ffract = true, + .lower_pack_half_2x16 = true, + .lower_unpack_half_2x16 = true, .lower_pack_split = true, .lower_extract_byte = true, .lower_extract_word = true,