From 15369a792aa7988fd1fc51fbf6863cd0552e9295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 10 Apr 2025 20:49:50 -0400 Subject: [PATCH] nir: handle mul24 in nir_def_bits_used Reviewed-by: Georg Lehmann Part-of: --- src/compiler/nir/nir_range_analysis.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/nir/nir_range_analysis.c b/src/compiler/nir/nir_range_analysis.c index 986c227e56a..5d29164b54f 100644 --- a/src/compiler/nir/nir_range_analysis.c +++ b/src/compiler/nir/nir_range_analysis.c @@ -2263,6 +2263,11 @@ ssa_def_bits_used(const nir_def *def, int recur) return all_bits; } + case nir_op_imul24: + case nir_op_umul24: + bits_used |= all_bits & 0xffffff; + break; + default: /* We don't know what this op does */ return all_bits;