Nikolay Sivov : d3d11/tests: Add a test for DXGI_FORMAT_R8G8_UINT support in vertex buffers.
Alexandre Julliard
julliard at winehq.org
Wed Nov 17 16:27:58 CST 2021
Module: wine
Branch: master
Commit: 80b957d529efc536198e70d2144efc6152cbff3c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=80b957d529efc536198e70d2144efc6152cbff3c
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Nov 17 15:00:09 2021 +0300
d3d11/tests: Add a test for DXGI_FORMAT_R8G8_UINT support in vertex buffers.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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");
More information about the wine-cvs
mailing list