From 3adf638c610cad80a1e9758f990bb6c889b6c357 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 14 Oct 2022 22:04:13 +0300 Subject: [PATCH] dxva2/tests: Add another render target format to fix a test failure. Signed-off-by: Nikolay Sivov --- dlls/dxva2/tests/dxva2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/dxva2/tests/dxva2.c b/dlls/dxva2/tests/dxva2.c index cc5bc3cd76f..db48f331772 100644 --- a/dlls/dxva2/tests/dxva2.c +++ b/dlls/dxva2/tests/dxva2.c @@ -580,11 +580,12 @@ static void test_progressive_device(void) MAKEFOURCC('N','V','1','2'), }; - static const D3DFORMAT support_rt_formats[] = + static const D3DFORMAT supported_rt_formats[] = { D3DFMT_X8R8G8B8, MAKEFOURCC('N','V','1','2'), D3DFMT_YUY2, + D3DFMT_A2R10G10B10, }; window = create_window(); @@ -647,7 +648,7 @@ static void test_progressive_device(void) ok(count > 0, "Unexpected format count %u.\n", count); for (j = 0; j < count; ++j) { - ok(check_format_list(rt_formats[j], support_rt_formats, ARRAY_SIZE(support_rt_formats)), + ok(check_format_list(rt_formats[j], supported_rt_formats, ARRAY_SIZE(supported_rt_formats)), "Unexpected rt format %#x for input format %#x.\n", rt_formats[j], input_formats[i]); } CoTaskMemFree(rt_formats);