pan/mdg: Use nir_lower_image_atomics_to_global
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 19 May 2023 02:59:53 +0000 (22:59 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 22 May 2023 14:33:14 +0000 (14:33 +0000)
commiteebb9377c41de68bf4f26c6976126ab530d13a45
treefc7cca09a1046d27e9aa2b8a860fdd74ac10d428
parent47f5cc6ba79847ec5a7a36dbc80aac38789cc075
pan/mdg: Use nir_lower_image_atomics_to_global

We were already lowering image atomics to lea_image + global atomic. It's a lot
nicer to make that lowering explicit in the NIR. This is much bigger win than in
the Bifrost compiler since here lea_image is used only for atomics, and here it
wasn't well abstracted in the compiler.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23120>
src/panfrost/midgard/midgard_compile.c
src/panfrost/midgard/midgard_nir_lower_image_bitsize.c