[PATCH 2/3] d3d11/tests: Add a test for DXGI_FORMAT_R8G8_UINT support in vertex buffers.

Nikolay Sivov nsivov at codeweavers.com
Wed Nov 17 06:00:09 CST 2021


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/d3d11/tests/d3d11.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index 561a38ec5aa..140e7cc195c 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -20619,6 +20619,11 @@ static void test_format_support(const D3D_FEATURE_LEVEL feature_level)
         {DXGI_FORMAT_R16_UINT, D3D_FEATURE_LEVEL_9_1},
     };
 
+    static const struct format_support vertex_buffers[] =
+    {
+        {DXGI_FORMAT_R8G8_UINT, D3D_FEATURE_LEVEL_10_0},
+    };
+
     device_desc.feature_level = &feature_level;
     device_desc.flags = 0;
     if (!(device = create_device(&device_desc)))
@@ -20684,6 +20689,10 @@ static void test_format_support(const D3D_FEATURE_LEVEL feature_level)
             index_buffers, ARRAY_SIZE(index_buffers),
             D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER, "index buffer");
 
+    check_format_support(format_support, feature_level,
+            vertex_buffers, ARRAY_SIZE(vertex_buffers),
+            D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER, "vertex buffer");
+
     check_format_support(format_support, feature_level,
             display_format_support, ARRAY_SIZE(display_format_support),
             D3D11_FORMAT_SUPPORT_DISPLAY, "display");
-- 
2.33.0




More information about the wine-devel mailing list