agx: Coalesce i2i16 and u2u16
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 2 Dec 2022 16:36:42 +0000 (11:36 -0500)
committerMarge Bot <emma+marge@anholt.net>
Sat, 17 Dec 2022 18:10:28 +0000 (18:10 +0000)
commitef23bbfdbd8e5ddcd55540a7a64df093b2d432d7
tree9a5c02f1b7d0b1914aaea034f89c8fba2de0f271
parent58d02e4f59629a72ce322813ae8416aa3b712dad
agx: Coalesce i2i16 and u2u16

Extract out the code for unpack_64_2x32_split_x and use it for other integer
downcasts too to coalesce out a move. Pointless, but I wanted to have a little
RA fun after getting stencil export working.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20365>
src/asahi/compiler/agx_compile.c