pan/mdg: Add new depth store lowering
authorIcecream95 <ixn@keemail.me>
Sat, 6 Jun 2020 05:25:08 +0000 (17:25 +1200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 13:54:03 +0000 (13:54 +0000)
commitd37e901e35a9db2fc5f10558e44fbf8376a174f5
treedc678c37b370ed8b848bb7d1565cac067423bf67
parenta68063402b4a28ce166bd8f824d69022a2469771
pan/mdg: Add new depth store lowering

This uses the new nir_intrinsic_store_combined_output_pan intrinsic,
which can write depth, stencil and color in a single instruction. If
there are no color writes, the "depth RT" is written to.

Fixes the dEQP GLES3 depth write tests, as well as the piglit tests
fragdepth_gles2, glsl-1.10-fragdepth and when modified to not rely
on depth/stencil reload, glsl-fs-shader-stencil-export.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5065>
.gitlab-ci/deqp-panfrost-t860-fails.txt
src/panfrost/midgard/midgard_compile.c