llvmpipe: fix early depth + alpha2coverage + occlusion query interaction
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 9 Aug 2023 19:18:59 +0000 (15:18 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Aug 2023 01:56:03 +0000 (01:56 +0000)
commitce09458917f434c1fdc4b4c73007ee6fe07bcdd7
tree2da9eb41467079539833bf3220b364b42f1b6104
parent632d4de2144f6dfb3095d8453980f72c4f5bfa23
llvmpipe: fix early depth + alpha2coverage + occlusion query interaction

in this scenario, sample counting must happen before a2c, as a2c may eliminate
coverage if alpha is zero, leading to a sample count of zero

dEQP-VK.fragment_operations.early_fragment.sample_count_early_fragment_tests_depth_alpha_to_coverage_samples_4_maintenance5

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24589>
src/gallium/drivers/llvmpipe/ci/llvmpipe-fails.txt
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/virgl/ci/virpipe-gl-fails.txt