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>
This commit is contained in:
committed by
Marge Bot
parent
a987167ebd
commit
b90d7b9b38
@@ -1931,6 +1931,7 @@ emit_frag_end(struct v3d_compile *c)
|
||||
!(c->s->info.num_images || c->s->info.num_ssbos) &&
|
||||
!c->s->info.fs.uses_discard &&
|
||||
!c->fs_key->sample_alpha_to_coverage &&
|
||||
c->output_sample_mask_index == -1 &&
|
||||
has_any_tlb_color_write) {
|
||||
c->s->info.fs.early_fragment_tests = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user