rendervulkan: add NV12 support

This doesn't yet display correct colors, and tiling artifacts are
visible.
This commit is contained in:
Simon Ser 2021-04-16 16:26:26 +02:00
parent 5f36d1060c
commit 910fba1008

View file

@ -151,6 +151,7 @@ struct {
{ DRM_FORMAT_XRGB8888, VK_FORMAT_A8B8G8R8_UNORM_PACK32, true, false },
{ DRM_FORMAT_ARGB8888, VK_FORMAT_A8B8G8R8_UNORM_PACK32, true, true },
{ DRM_FORMAT_ARGB8888, VK_FORMAT_R8G8B8A8_UNORM, false, true },
{ DRM_FORMAT_NV12, VK_FORMAT_G8_B8R8_2PLANE_420_UNORM, false, false },
{ DRM_FORMAT_INVALID, VK_FORMAT_UNDEFINED, false, false },
};