From eaf75169ee413087d7e1a43f604c2d54766287d9 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 4 Nov 2024 10:20:31 -0400 Subject: [PATCH] nir: add amul flag Signed-off-by: Alyssa Rosenzweig Reviewed-by: Karol Herbst Part-of: --- src/compiler/nir/nir.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 84c11062945..5a8923cf8f2 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4167,6 +4167,13 @@ typedef struct nir_shader_compiler_options { /** Backend supports ternary addition */ bool has_iadd3; + /** + * Backend supports amul and would like them generated whenever + * possible. This is stronger than has_imul24 for amul, but does not imply + * support for imul24. + */ + bool has_amul; + /** * Backend supports imul24, and would like to use it (when possible) * for address/offset calculation. If true, driver should call