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,