From 5b25ee6cc765022c506447a0b0ca7907902880ee Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 6 Jan 2023 22:32:40 -0500 Subject: [PATCH] agx: Use agx_subdivide_to for umul_high Helpers! Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 162ec23f5b6..35ec83770a6 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -316,9 +316,7 @@ agx_umul_high_to(agx_builder *b, agx_index dst, agx_index P, agx_index Q) agx_index product = agx_temp(b->shader, P.size + 1); agx_imad_to(b, product, agx_abs(P), agx_abs(Q), agx_zero(), 0); - agx_instr *split = agx_split(b, 2, product); - split->dest[1] = dst; - return split; + return agx_subdivide_to(b, dst, product, 1); } static enum agx_format