From e20f02f64afc1dea3dcf96bd45ff21452fdf4d8d Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Sun, 22 Oct 2023 01:59:12 +0000 Subject: [PATCH] freedreno/ir3: Lower the hadd operations There do not seem to be instructions for the ihadd/uhadd NIR operations. Lower them to simpler ops. Signed-off-by: Dmitry Baryshkov Part-of: --- src/freedreno/ir3/ir3_compiler.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedreno/ir3/ir3_compiler.c b/src/freedreno/ir3/ir3_compiler.c index dc3867dcc54..3089b2f1f5b 100644 --- a/src/freedreno/ir3/ir3_compiler.c +++ b/src/freedreno/ir3/ir3_compiler.c @@ -108,6 +108,9 @@ static const nir_shader_compiler_options ir3_base_options = { .lower_cs_local_index_to_id = true, .lower_wpos_pntc = true, + .lower_hadd = true, + .lower_hadd64 = true, + .lower_int64_options = (nir_lower_int64_options)~0, .lower_doubles_options = (nir_lower_doubles_options)~0,