agx: Tease apart some sample_mask packing magic
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 30 Mar 2023 01:58:59 +0000 (21:58 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Apr 2023 03:23:04 +0000 (03:23 +0000)
commit2028e7b88b919d4830234b3984bdc5117064ef12
treece3c39cd61221e1d32a0d5a0bb0bc89e2e0cf0f0
parent13b3da822b4cc9a8496757caeb18629714789efe
agx: Tease apart some sample_mask packing magic

There's a second instruction here, and a second source in the first instruction.
applegpu has known about the encodings for a while but I never updated the
packing code. We will need to stop hardcoding this for multisampling support, as
preparation tease apart the magic pieces.

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