From 31af522cbc84e85fbd1594110a2b74d610724f76 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Sat, 8 Apr 2023 03:21:34 +0200 Subject: [PATCH] [dxvk] Add VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM --- src/dxvk/dxvk_format.cpp | 9 ++++++++- src/dxvk/dxvk_format.h | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/dxvk/dxvk_format.cpp b/src/dxvk/dxvk_format.cpp index 09fb9087..72c3da2c 100644 --- a/src/dxvk/dxvk_format.cpp +++ b/src/dxvk/dxvk_format.cpp @@ -556,6 +556,13 @@ namespace dxvk { // VK_FORMAT_A4B4G4R4_UNORM_PACK16 { 2, RGBA, VK_IMAGE_ASPECT_COLOR_BIT }, + // VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM + { 8, RGB, VK_IMAGE_ASPECT_PLANE_0_BIT | VK_IMAGE_ASPECT_PLANE_1_BIT | VK_IMAGE_ASPECT_PLANE_2_BIT, + DxvkFormatFlag::MultiPlane, VkExtent3D { 1, 1, 1 }, + { DxvkPlaneFormatInfo { 1, { 1, 1 } }, + DxvkPlaneFormatInfo { 1, { 2, 2 } }, + DxvkPlaneFormatInfo { 1, { 2, 2 } } } }, + // VK_FORMAT_G8_B8R8_2PLANE_420_UNORM { 6, RGB, VK_IMAGE_ASPECT_PLANE_0_BIT | VK_IMAGE_ASPECT_PLANE_1_BIT, DxvkFormatFlag::MultiPlane, VkExtent3D { 1, 1, 1 }, @@ -568,7 +575,7 @@ namespace dxvk { { VK_FORMAT_UNDEFINED, VK_FORMAT_BC7_SRGB_BLOCK }, { VK_FORMAT_G8B8G8R8_422_UNORM_KHR, VK_FORMAT_B8G8R8G8_422_UNORM_KHR }, { VK_FORMAT_A4R4G4B4_UNORM_PACK16, VK_FORMAT_A4B4G4R4_UNORM_PACK16 }, - { VK_FORMAT_G8_B8R8_2PLANE_420_UNORM, VK_FORMAT_G8_B8R8_2PLANE_420_UNORM }, + { VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM, VK_FORMAT_G8_B8R8_2PLANE_420_UNORM }, }}; diff --git a/src/dxvk/dxvk_format.h b/src/dxvk/dxvk_format.h index 34084642..97775b8b 100644 --- a/src/dxvk/dxvk_format.h +++ b/src/dxvk/dxvk_format.h @@ -87,7 +87,7 @@ namespace dxvk { }; /// Number of formats defined in lookup table - constexpr size_t DxvkFormatCount = 152; + constexpr size_t DxvkFormatCount = 153; /// Format lookup table extern const std::array g_formatInfos;