agx: Implement depth and stencil export
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 17 Dec 2022 04:38:07 +0000 (23:38 -0500)
committerMarge Bot <emma+marge@anholt.net>
Sat, 17 Dec 2022 18:10:28 +0000 (18:10 +0000)
commit9578b47af3912e7f7267e5b4723c610ea187c921
tree7afa74651a28ede2b0a592bd6d192a91d65a0c27
parent15155268de7172433c5fa7e4854e004a0d3c0efd
agx: Implement depth and stencil export

Lower FRAG_RESULT_DEPTH and FRAG_RESULT_STENCIL writes to a combnied zs_emit
instruction with a multisampling index. To be used in the following commit.

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
src/asahi/compiler/agx_compile.h
src/asahi/compiler/agx_compiler.h
src/asahi/compiler/agx_nir_lower_zs_emit.c [new file with mode: 0644]
src/asahi/compiler/agx_opcodes.py
src/asahi/compiler/agx_optimizer.c
src/asahi/compiler/agx_pack.c
src/asahi/compiler/meson.build