Skip to content

broadcom/compiler: don't enable early fragment tests if shader writes Z

Iago Toral requested to merge itoral/mesa:v3d_early_fragment_tests_fix into main

We had an optimization to auto-enable early fragment tests when a shader didn't have side effects, but of course, we cannot do that this if the shader writes Z, as in that case the fragment tests need to use the value written from the shader.

Also, if the shader enables early fragment tests, then any shader Z writes should be ignored.

Fixes: dEQP-VK.spirv_assembly.instruction.graphics.early_fragment.*

Merge request reports