From 0b348fb37568f6c59e44c95c6e0a262681a008be Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Tue, 28 Oct 2025 07:38:37 +0100 Subject: [PATCH] nir: add has_umul_16x16 option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Job Noorman Reviewed-by: Timur Kristóf Part-of: --- src/compiler/nir/nir_shader_compiler_options.h | 3 +++ src/freedreno/ir3/ir3_compiler.c | 1 + 2 files changed, 4 insertions(+) diff --git a/src/compiler/nir/nir_shader_compiler_options.h b/src/compiler/nir/nir_shader_compiler_options.h index 38da0fc3bc0..5ad97375342 100644 --- a/src/compiler/nir/nir_shader_compiler_options.h +++ b/src/compiler/nir/nir_shader_compiler_options.h @@ -565,6 +565,9 @@ typedef struct nir_shader_compiler_options { */ bool has_mul24_relaxed; + /** Backend supports umul_16x16. */ + bool has_umul_16x16; + /** Backend supports 32-bit imad */ bool has_imad32; diff --git a/src/freedreno/ir3/ir3_compiler.c b/src/freedreno/ir3/ir3_compiler.c index 169349d05fd..ee59d3702ca 100644 --- a/src/freedreno/ir3/ir3_compiler.c +++ b/src/freedreno/ir3/ir3_compiler.c @@ -105,6 +105,7 @@ static const nir_shader_compiler_options ir3_base_options = { .lower_pack_64_4x16 = true, .lower_to_scalar = true, .has_imul24 = true, + .has_umul_16x16 = true, .has_icsel_eqz32 = true, .has_icsel_eqz16 = true, .has_fsub = true,