mesa/src/panfrost/util
Alyssa Rosenzweig 5c9ffaad8f pan/bi: Lower sample mask writes in NIR
This uses the new NIR sysvals to avoid materializing magic sysvals in the
driver, getting us closer to the Ekstrand Rule.

v2: Only lower for fragment shaders. Lowering in vertex shaders should be a
no-op, except that FRAG_RESULT_SAMPLE_MASK shadows a VARYING_SLOT for fog
coords, causing v1 of this patch to regress fog. Caught by the G52 piglit job in
CI. Thank you, Marge.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> [v1]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20906>
2023-03-23 23:53:45 +00:00
..
lcra.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
lcra.h panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
meson.build panfrost: Don't use nir_variable to link varyings 2022-11-02 16:52:11 +00:00
nir_mod_helpers.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_collect_varyings.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_ir.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_ir.h panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_liveness.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_lower_64bit_intrin.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_lower_framebuffer.c pan/lower_framebuffer: Operate on lowered I/O 2023-02-17 23:09:19 +00:00
pan_lower_framebuffer.h panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_lower_helper_invocation.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_lower_sample_position.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_lower_store_component.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_lower_writeout.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_lower_xfb.c panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
pan_sysval.c pan/bi: Lower sample mask writes in NIR 2023-03-23 23:53:45 +00:00