render/vulkan: enable NV12 on big-endian

This format doesn't change its layout on big endian because it's
not packed and has 8-bit channels.
This commit is contained in:
Simon Ser 2023-05-10 14:31:20 +02:00
parent 2a1234a820
commit e353c5c631

View file

@ -145,13 +145,11 @@ static const struct wlr_vk_format formats[] = {
#endif #endif
// YCbCr formats // YCbCr formats
#if WLR_LITTLE_ENDIAN
{ {
.drm = DRM_FORMAT_NV12, .drm = DRM_FORMAT_NV12,
.vk = VK_FORMAT_G8_B8R8_2PLANE_420_UNORM, .vk = VK_FORMAT_G8_B8R8_2PLANE_420_UNORM,
.is_ycbcr = true, .is_ycbcr = true,
}, },
#endif
}; };
const struct wlr_vk_format *vulkan_get_format_list(size_t *len) { const struct wlr_vk_format *vulkan_get_format_list(size_t *len) {