broadcom/compiler: don't promote early fragment tests when writing sample mask
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 20 May 2022 07:44:45 +0000 (09:44 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 20 May 2022 13:04:32 +0000 (13:04 +0000)
commitb90d7b9b38b92114532553db01d72b20cbc43d4d
treeefb5785de1883f1007ff800d10f1c41d2fcc7316
parenta987167ebd75c002f8f5d3724ffbafb60cccc86c
broadcom/compiler: don't promote early fragment tests when writing sample mask

If the sample mask is being written it means we want to discard some of the
samples generated so we should not be promoting the fragment shader to
do early tests, since that would not take into account the sample mask
written from the shader.

Fixes:
dEQP-VK.fragment_operations.early_fragment.sample_count_early_fragment_tests_depth_samples_4

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16626>
src/broadcom/compiler/nir_to_vir.c