diff --git a/src/panfrost/compiler/bifrost_compile.h b/src/panfrost/compiler/bifrost_compile.h index c5de9b893da..0c7297cb10c 100644 --- a/src/panfrost/compiler/bifrost_compile.h +++ b/src/panfrost/compiler/bifrost_compile.h @@ -107,6 +107,8 @@ void bifrost_compile_shader_nir(nir_shader *nir, \ .lower_bitfield_insert = true, \ .lower_bitfield_extract = true, \ + .lower_bitfield_extract8 = true, \ + .lower_bitfield_extract16 = true, \ .lower_insert_byte = true, \ \ .lower_pack_64_4x16 = true, \ diff --git a/src/panfrost/midgard/midgard_compile.h b/src/panfrost/midgard/midgard_compile.h index 92f51dc1dad..55b39b8dc55 100644 --- a/src/panfrost/midgard/midgard_compile.h +++ b/src/panfrost/midgard/midgard_compile.h @@ -70,6 +70,8 @@ static const nir_shader_compiler_options midgard_nir_options = { .lower_bitfield_reverse = true, .lower_bitfield_insert = true, .lower_bitfield_extract = true, + .lower_bitfield_extract8 = true, + .lower_bitfield_extract16 = true, .lower_extract_byte = true, .lower_extract_word = true, .lower_insert_byte = true,