=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d/tests: Check that device implements IDXGIDevice1.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 26 09:58:34 CDT 2015


Module: wine
Branch: master
Commit: 8b0b82a580b00ba69903d9b67f36a6cd6c563e23
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8b0b82a580b00ba69903d9b67f36a6cd6c563e23

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Mon Oct 26 02:30:25 2015 +0100

d3d/tests: Check that device implements IDXGIDevice1.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);




More information about the wine-cvs mailing list