turnip: wrong border color for Z24S8
dEQP-GLES31.functional.texture.border_clamp.formats.depth24_stencil8_sample_stencil.nearest_size_pot
fails on angle. Left is what turnip produces while right is the expected result
custom-border-color.rdc can reproduce the issue.
In tu_CreateImageView
, we translate VK_FORMAT_D24_UNORM_S8_UINT
with VK_IMAGE_ASPECT_STENCIL_BIT
to PIPE_FORMAT_X24S8_UINT
. In fdl6_texswiz
, we set format_swiz
to [W, 0, 0 1]
. This is alright because we use FMT6_8_8_8_8_UINT
as the hw format and we would like to swizzle the stencil value to the first channel.
The problem is that swizzles apply to border colors as well. angle correctly sets the border color to [76, 0, 0, 0]
. But turnip's swizzling maps the last channel to the first channel. We get 0 instead of 76.