agx: Fix atomics with no destination
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 27 Jul 2023 18:06:00 +0000 (14:06 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Aug 2023 20:31:27 +0000 (20:31 +0000)
commitf4fd4d4d506474fd6965c0ca42f58be3db73503f
tree3932f420ae7ee4b0d2fa0d142dade2f74fba4e10
parent9da8dc47f98e338861e9125b640a4fc26d42ff42
agx: Fix atomics with no destination

We need to:

* properly null out the dest in DCE.
* not assert out when packing with null dest

Fixes potential reg pressure blow up with atomics that don't use their
destinations, though I don't see shader-db changes.

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