turnip: support more formats (VK_KHR_sampler_ycbcr_conversion, 422_UNORM/420_UNORM, S8_UINT and D32_SFLOAT_S8_UINT)
Adds formats which were missing compared to the closed driver (note: only recent closed driver has S8_UINT and D32_SFLOAT_S8_UINT).
Supporting VK_FORMAT_G8_B8R8_2PLANE_420_UNORM
is important because its the only format that can be used to import UBWC-compressed buffers from the video decoder (the Y plane is not compatible with FMT6_8_UNORM
's UBWC)
Seems like its not possible to support D16_UNORM_S8_UINT
using the same idea as D32_SFLOAT_S8_UINT
, since separate stencil seems to only work with DEPTH6_32
(for S8_UINT
, depth is disabled so it works while setting DEPTH6_32
)
(note: only tested ycbcr with dEQP-VK.ycbcr.conversion.*
, because with bindless changes from yesterday there are asserts failing in some ir3 stuff)