1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[dxgi] Add format mapping for DXGI_FORMAT_YUY2

And fix some existing 422 mappings.
This commit is contained in:
Philip Rebohle 2021-05-30 13:41:29 +02:00
parent 9b236078c2
commit d859361a37
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -331,19 +331,15 @@ namespace dxvk {
VK_FORMAT_UNDEFINED,
VK_IMAGE_ASPECT_COLOR_BIT },
// DXGI_FORMAT_R8G8_B8G8_UNORM
{ VK_FORMAT_B8G8R8G8_422_UNORM_KHR,
{ VK_FORMAT_B8G8R8G8_422_UNORM,
VK_FORMAT_UNDEFINED,
VK_FORMAT_UNDEFINED,
VK_IMAGE_ASPECT_COLOR_BIT, 0,
{ VK_COMPONENT_SWIZZLE_B, VK_COMPONENT_SWIZZLE_G,
VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_ONE }},
VK_IMAGE_ASPECT_COLOR_BIT },
// DXGI_FORMAT_G8R8_G8B8_UNORM
{ VK_FORMAT_G8B8G8R8_422_UNORM_KHR,
{ VK_FORMAT_G8B8G8R8_422_UNORM,
VK_FORMAT_UNDEFINED,
VK_FORMAT_UNDEFINED,
VK_IMAGE_ASPECT_COLOR_BIT, 0,
{ VK_COMPONENT_SWIZZLE_B, VK_COMPONENT_SWIZZLE_G,
VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_ONE }},
VK_IMAGE_ASPECT_COLOR_BIT },
// DXGI_FORMAT_BC1_TYPELESS
{ VK_FORMAT_BC1_RGBA_UNORM_BLOCK,
VK_FORMAT_UNDEFINED,
@ -508,7 +504,10 @@ namespace dxvk {
VK_FORMAT_UNDEFINED,
VK_IMAGE_ASPECT_PLANE_0_BIT | VK_IMAGE_ASPECT_PLANE_1_BIT },
// DXGI_FORMAT_YUY2
{ }, // Unsupported
{ VK_FORMAT_G8B8G8R8_422_UNORM,
VK_FORMAT_UNDEFINED,
VK_FORMAT_UNDEFINED,
VK_IMAGE_ASPECT_COLOR_BIT },
// DXGI_FORMAT_Y210
{ }, // Unsupported
// DXGI_FORMAT_Y216
@ -813,7 +812,9 @@ namespace dxvk {
VK_FORMAT_R8_UINT,
VK_FORMAT_R8G8_UINT },
// DXGI_FORMAT_YUY2
{ }, // Unsupported
{ VK_FORMAT_G8B8G8R8_422_UNORM,
VK_FORMAT_R8G8B8A8_UNORM,
VK_FORMAT_R8G8B8A8_UINT },
// DXGI_FORMAT_Y210
{ }, // Unsupported
// DXGI_FORMAT_Y216