[PATCH 3/3] d3d/tests: Check that device implements IDXGIDevice1.

Józef Kucia jkucia at codeweavers.com
Sun Oct 25 20:30:25 CDT 2015


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/d3d10_1/tests/d3d10_1.c  | 4 ++++
 dlls/d3d10core/tests/device.c | 5 +++++
 dlls/d3d11/tests/d3d11.c      | 4 ++++
 3 files changed, 13 insertions(+)

diff --git a/dlls/d3d10_1/tests/d3d10_1.c b/dlls/d3d10_1/tests/d3d10_1.c
index fd865a3..c145181 100644
--- a/dlls/d3d10_1/tests/d3d10_1.c
+++ b/dlls/d3d10_1/tests/d3d10_1.c
@@ -95,6 +95,10 @@ static void test_device_interfaces(void)
         IDXGIAdapter_Release(dxgi_adapter);
         IDXGIDevice_Release(dxgi_device);
 
+        hr = ID3D10Device1_QueryInterface(device, &IID_IDXGIDevice1, (void **)&iface);
+        ok(SUCCEEDED(hr), "Device should implement IDXGIDevice1.\n");
+        IUnknown_Release(iface);
+
         hr = ID3D10Device1_QueryInterface(device, &IID_ID3D10Multithread, (void **)&iface);
         ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
                 "Device should implement ID3D10Multithread interface, hr %#x.\n", hr);
diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c
index 38e9e9c..5606c3b 100644
--- a/dlls/d3d10core/tests/device.c
+++ b/dlls/d3d10core/tests/device.c
@@ -240,6 +240,11 @@ static void test_device_interfaces(void)
     IUnknown_Release(dxgi_adapter);
     IUnknown_Release(dxgi_device);
 
+    hr = ID3D10Device_QueryInterface(device, &IID_IDXGIDevice1, (void **)&iface);
+    ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
+            "Device should implement IDXGIDevice1.\n");
+    if (SUCCEEDED(hr)) IUnknown_Release(iface);
+
     hr = ID3D10Device_QueryInterface(device, &IID_ID3D10Multithread, (void **)&iface);
     ok(SUCCEEDED(hr), "Device should implement ID3D10Multithread interface, hr %#x.\n", hr);
     IUnknown_Release(iface);
diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index f54e6e3..7adea47 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -288,6 +288,10 @@ static void test_device_interfaces(void)
         IDXGIAdapter_Release(dxgi_adapter);
         IDXGIDevice_Release(dxgi_device);
 
+        hr = ID3D11Device_QueryInterface(device, &IID_IDXGIDevice1, (void **)&iface);
+        ok(SUCCEEDED(hr), "Device should implement IDXGIDevice1.\n");
+        IUnknown_Release(iface);
+
         hr = ID3D11Device_QueryInterface(device, &IID_ID3D10Multithread, (void **)&iface);
         ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
                 "Device should implement ID3D10Multithread interface, hr %#x.\n", hr);
-- 
2.4.10




More information about the wine-patches mailing list