Nikolay Sivov : dxva2/tests: Add a test for GetVideoProcessorDeviceGuids().
Alexandre Julliard
julliard at winehq.org
Mon Oct 12 15:20:50 CDT 2020
Module: wine
Branch: master
Commit: 1829c196872bec9187e5ef2c2cb99683dbe22bb2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1829c196872bec9187e5ef2c2cb99683dbe22bb2
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Oct 12 14:19:23 2020 +0300
dxva2/tests: Add a test for GetVideoProcessorDeviceGuids().
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dxva2/tests/dxva2.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/dxva2/tests/dxva2.c b/dlls/dxva2/tests/dxva2.c
index f5b28ed3f8..9dcd3e5bf4 100644
--- a/dlls/dxva2/tests/dxva2.c
+++ b/dlls/dxva2/tests/dxva2.c
@@ -92,6 +92,7 @@ static void test_device_manager(void)
UINT token, count;
IDirect3D9 *d3d;
HWND window;
+ GUID *guids;
HRESULT hr;
RECT rect;
@@ -309,6 +310,11 @@ static void test_device_manager(void)
video_desc.SampleHeight = 64;
video_desc.Format = D3DFMT_A8R8G8B8;
+ hr = IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids(proc_service, &video_desc, &count, &guids);
+ ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
+ ok(count, "Unexpected format count %u.\n", count);
+ CoTaskMemFree(guids);
+
count = 0;
hr = IDirectXVideoProcessorService_GetVideoProcessorRenderTargets(proc_service, &DXVA2_VideoProcSoftwareDevice,
&video_desc, &count, &formats);
More information about the wine-cvs
mailing list