Use VK_FORMAT_B8G8R8A8_UNORM no swizzle for DRM_FORMAT_ARGB8888

We use this as an input not as the output so we can just use the DRM format as this exactly with no swizzle.

This format is guaranteed to be supported.
This commit is contained in:
Joshua Ashton 2021-07-20 18:19:10 +01:00 committed by Simon Ser
parent 860f4d6384
commit 8b70637998

View file

@ -147,8 +147,8 @@ struct {
bool bNeedsSwizzle;
bool bHasAlpha;
} s_DRMVKFormatTable[] = {
{ DRM_FORMAT_XRGB8888, VK_FORMAT_R8G8B8A8_UNORM, true, false },
{ DRM_FORMAT_ARGB8888, VK_FORMAT_R8G8B8A8_UNORM, true, true },
{ DRM_FORMAT_XRGB8888, VK_FORMAT_B8G8R8A8_UNORM, false, false },
{ DRM_FORMAT_ARGB8888, VK_FORMAT_B8G8R8A8_UNORM, false, true },
{ DRM_FORMAT_NV12, VK_FORMAT_G8_B8R8_2PLANE_420_UNORM, false, false },
{ DRM_FORMAT_INVALID, VK_FORMAT_UNDEFINED, false, false },
};