From 0e24452535e370d87dd7492e7ca8d41bdc4cfb09 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 12 Jun 2025 12:35:52 +0200 Subject: [PATCH] panfrost: lower bitfield_extract8|16 Reviewed-by: Mary Guillemard Part-of: --- src/panfrost/compiler/bifrost_compile.h | 2 ++ src/panfrost/midgard/midgard_compile.h | 2 ++ 2 files changed, 4 insertions(+) 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,