agx: Use agx_subdivide_to for umul_high

Helpers!

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20559>
This commit is contained in:
Alyssa Rosenzweig
2023-01-06 22:32:40 -05:00
committed by Marge Bot
parent f6c5b2a5a3
commit 5b25ee6cc7

View File

@@ -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