agx: Handle frag side effects without render targets
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 31 May 2023 00:16:07 +0000 (20:16 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jul 2023 15:33:28 +0000 (15:33 +0000)
commit5b3635a19744ccae2fc36cc0d6f6ce9cc6cee894
tree26c953767e53f77fdefbd7aaf3a6e7a26af92f27
parent4ef89e71bac056abf721222d170399d0a1495590
agx: Handle frag side effects without render targets

We still need to insert our lowering code, though this case could probably be
optimized somehow. Fixes a massive number of KHR-GLES3 and KHR-GLES31 tests,
including
KHR-GLES31.core.shader_atomic_counters.advanced-usage-many-draw-calls2 and lots
of PBO tests.

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