[PATCH vkd3d 6/7] libs/vkd3d: Add more formats.

Józef Kucia joseph.kucia at gmail.com
Tue Jan 9 06:13:09 CST 2018


From: Józef Kucia <jkucia at codeweavers.com>

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 libs/vkd3d/utils.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libs/vkd3d/utils.c b/libs/vkd3d/utils.c
index 05602242267e..f94dce50daa3 100644
--- a/libs/vkd3d/utils.c
+++ b/libs/vkd3d/utils.c
@@ -36,6 +36,8 @@ static const struct vkd3d_format vkd3d_formats[] =
     {DXGI_FORMAT_R8G8B8A8_TYPELESS,   VK_FORMAT_R8G8B8A8_UNORM,           4,  1, 1,  1, COLOR},
     {DXGI_FORMAT_R8G8B8A8_UNORM,      VK_FORMAT_R8G8B8A8_UNORM,           4,  1, 1,  1, COLOR},
     {DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, VK_FORMAT_R8G8B8A8_SRGB,            4,  1, 1,  1, COLOR},
+    {DXGI_FORMAT_R16G16_FLOAT,        VK_FORMAT_R16G16_SFLOAT,            4,  1, 1,  1, COLOR},
+    {DXGI_FORMAT_R16G16_UNORM,        VK_FORMAT_R16G16_UNORM,             4,  1, 1,  1, COLOR},
     {DXGI_FORMAT_R32_TYPELESS,        VK_FORMAT_R32_UINT,                 4,  1, 1,  1, COLOR},
     {DXGI_FORMAT_D32_FLOAT,           VK_FORMAT_D32_SFLOAT,               4,  1, 1,  1, DEPTH},
     {DXGI_FORMAT_R32_FLOAT,           VK_FORMAT_R32_SFLOAT,               4,  1, 1,  1, COLOR},
@@ -51,14 +53,19 @@ static const struct vkd3d_format vkd3d_formats[] =
     {DXGI_FORMAT_B8G8R8A8_UNORM,      VK_FORMAT_B8G8R8A8_UNORM,           4,  1, 1,  1, COLOR},
     {DXGI_FORMAT_B8G8R8A8_TYPELESS,   VK_FORMAT_B8G8R8A8_UNORM,           4,  1, 1,  1, COLOR},
     {DXGI_FORMAT_B8G8R8A8_UNORM_SRGB, VK_FORMAT_B8G8R8A8_SRGB,            4,  1, 1,  1, COLOR},
+    {DXGI_FORMAT_BC1_TYPELESS,        VK_FORMAT_BC1_RGBA_UNORM_BLOCK,     1,  4, 4,  8, COLOR},
     {DXGI_FORMAT_BC1_UNORM,           VK_FORMAT_BC1_RGBA_UNORM_BLOCK,     1,  4, 4,  8, COLOR},
     {DXGI_FORMAT_BC1_UNORM_SRGB,      VK_FORMAT_BC1_RGBA_SRGB_BLOCK,      1,  4, 4,  8, COLOR},
+    {DXGI_FORMAT_BC2_TYPELESS,        VK_FORMAT_BC2_UNORM_BLOCK,          1,  4, 4, 16, COLOR},
     {DXGI_FORMAT_BC2_UNORM,           VK_FORMAT_BC2_UNORM_BLOCK,          1,  4, 4, 16, COLOR},
     {DXGI_FORMAT_BC2_UNORM_SRGB,      VK_FORMAT_BC2_SRGB_BLOCK,           1,  4, 4, 16, COLOR},
+    {DXGI_FORMAT_BC3_TYPELESS,        VK_FORMAT_BC3_UNORM_BLOCK,          1,  4, 4, 16, COLOR},
     {DXGI_FORMAT_BC3_UNORM,           VK_FORMAT_BC3_UNORM_BLOCK,          1,  4, 4, 16, COLOR},
     {DXGI_FORMAT_BC3_UNORM_SRGB,      VK_FORMAT_BC3_SRGB_BLOCK,           1,  4, 4, 16, COLOR},
+    {DXGI_FORMAT_BC4_TYPELESS,        VK_FORMAT_BC4_UNORM_BLOCK,          1,  4, 4,  8, COLOR},
     {DXGI_FORMAT_BC4_UNORM,           VK_FORMAT_BC4_UNORM_BLOCK,          1,  4, 4,  8, COLOR},
     {DXGI_FORMAT_BC4_SNORM,           VK_FORMAT_BC4_SNORM_BLOCK,          1,  4, 4,  8, COLOR},
+    {DXGI_FORMAT_BC5_TYPELESS,        VK_FORMAT_BC5_UNORM_BLOCK,          1,  4, 4, 16, COLOR},
     {DXGI_FORMAT_BC5_UNORM,           VK_FORMAT_BC5_UNORM_BLOCK,          1,  4, 4, 16, COLOR},
     {DXGI_FORMAT_BC5_SNORM,           VK_FORMAT_BC5_SNORM_BLOCK,          1,  4, 4, 16, COLOR},
     {DXGI_FORMAT_BC6H_UF16,           VK_FORMAT_BC6H_UFLOAT_BLOCK,        1,  4, 4, 16, COLOR},
-- 
2.13.6




More information about the wine-devel mailing list