asahi: Add NIR pass to lower tilebuffer access
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 19 Nov 2022 03:35:05 +0000 (22:35 -0500)
committerMarge Bot <emma+marge@anholt.net>
Sat, 19 Nov 2022 20:25:41 +0000 (20:25 +0000)
commit74de571402a21e15855a6bb5506fecc77e50b4ef
treeac55fba5e6a61a90b71d8d6191c0e07834077a92
parent66a680a0435f5d1a7ba937fcd11aeba3581bbee8
asahi: Add NIR pass to lower tilebuffer access

The compiler can't handle load/store_output directly for nontrivial tilebuffer
layouts. Add a NIR pass to lower these intrinsics, applying a given layout.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19871>
src/asahi/lib/agx_nir_format_helpers.h [new file with mode: 0644]
src/asahi/lib/agx_nir_lower_tilebuffer.c [new file with mode: 0644]
src/asahi/lib/meson.build