mesa/src/panfrost
Christian Duerr 781ea0997b panfrost: Fix dual-source blending
If dual blending is enabled, only 1 output is supported. Multiple
outputs confuse the write combining pass in this case, leading to
incorrect output and/or an assert failure in emit_fragment_store.

The fix is straightforward, just skip the speculative emitting of
multiple outputs in the case where dual source blending is enabled.

This also adds an extra sanity check in `pan_nir_lower_zs_store` to
check for only one blend store being present.

Fixes: c65a9be421 ("panfrost: Preprocess shaders at CSO create time")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9487
Co-Authored-By: Eric R. Smith <eric.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26474>
(cherry picked from commit 49c1b404e5)
2024-02-07 16:22:20 +00:00
..
ci panvk: Fix access to unitialized panvk_pipeline_layout::num_sets field 2024-01-17 22:18:30 +00:00
compiler nir: rework and fix rotate lowering 2024-01-23 20:52:01 +00:00
drm-shim panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
ds panfrost: rename *.cc files to *.cpp 2023-05-26 18:07:38 +01:00
include panfrost: prepare pan_image_view for multiplanar formats 2023-08-07 19:35:12 +00:00
lib panfrost: Fix multiplanar YUV texture descriptor emission on v9+ 2023-12-05 14:34:03 +00:00
midgard nir: rework and fix rotate lowering 2024-01-23 20:52:01 +00:00
perf panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
shared meson: inline gtest_test_protocol now that it's always 'gtest' 2023-03-10 07:20:29 +00:00
tools pan/decode: handle more than one panfrost_device 2023-08-14 22:41:10 +00:00
util panfrost: Fix dual-source blending 2024-02-07 16:22:20 +00:00
vulkan panvk: Fix access to unitialized panvk_pipeline_layout::num_sets field 2024-01-17 22:18:30 +00:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
meson.build panfrost: drop no-longer-needed libglsl 2023-02-10 14:09:37 +00:00