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:

committed by
Marge Bot

parent
f6c5b2a5a3
commit
5b25ee6cc7
@@ -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_index product = agx_temp(b->shader, P.size + 1);
|
||||||
agx_imad_to(b, product, agx_abs(P), agx_abs(Q), agx_zero(), 0);
|
agx_imad_to(b, product, agx_abs(P), agx_abs(Q), agx_zero(), 0);
|
||||||
|
|
||||||
agx_instr *split = agx_split(b, 2, product);
|
return agx_subdivide_to(b, dst, product, 1);
|
||||||
split->dest[1] = dst;
|
|
||||||
return split;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum agx_format
|
static enum agx_format
|
||||||
|
Reference in New Issue
Block a user