Skip to content

tu: Disable depth and stencil tests when attachment state requires it

Amber Harmonia requested to merge amber/mesa:fix-ds-emission into main

The pipeline depth/stencil state can indicate that the stencil test is enabled even in cases where the attachment is missing a stencil component or has a null/unused stencil attachment or format respectively.

Fixes:

dEQP-VK.pipeline.monolithic.stencil.no_stencil_att.*.d24_unorm_s8_uint
dEQP-VK.pipeline.monolithic.stencil.no_stencil_att.*.x8_d24_unorm_pack32

In these tests RB_STENCIL_CONTROL had STENCIL_ENABLE set, causing the stencil test to use wrong values due to the depth format being DEPTH6_24_8 in both.

Edited by Amber Harmonia

Merge request reports