Nikolay Sivov : mfplat/tests: Handle ResetDevice() failure when used with D3D12 device.
Alexandre Julliard
julliard at winehq.org
Wed Dec 15 14:25:57 CST 2021
Module: wine
Branch: master
Commit: 1e1e9463114039fc83e3407cad601e7c7855258a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1e1e9463114039fc83e3407cad601e7c7855258a
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Dec 15 11:12:43 2021 +0300
mfplat/tests: Handle ResetDevice() failure when used with D3D12 device.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52165
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mfplat/tests/mfplat.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c
index 33b93852e2a..21eab6d1172 100644
--- a/dlls/mfplat/tests/mfplat.c
+++ b/dlls/mfplat/tests/mfplat.c
@@ -7467,6 +7467,11 @@ static void test_sample_allocator_d3d12(void)
ok(hr == S_OK, "Failed to create device manager, hr %#x.\n", hr);
hr = IMFDXGIDeviceManager_ResetDevice(manager, (IUnknown *)device, token);
+ if (FAILED(hr))
+ {
+ win_skip("Device manager does not support D3D12 devices.\n");
+ goto done;
+ }
ok(hr == S_OK, "Failed to set a device, hr %#x.\n", hr);
hr = pMFCreateVideoSampleAllocatorEx(&IID_IMFVideoSampleAllocator, (void **)&allocator);
More information about the wine-cvs
mailing list