[PATCH 10/11] d3d10core/tests: Skip stencil SRV test when SRV creation fails.

Józef Kucia jkucia at codeweavers.com
Thu Jan 26 06:07:36 CST 2017


This seems to be consistent failure on some hardware:
https://test.winehq.org/data/c3e6ecde36692d03dc360200c7a7044a02c4a392/win8_fg-acer64-w8-t32/d3d10core:device.html

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/d3d10core/tests/device.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c
index 86d3df3..2d5115f 100644
--- a/dlls/d3d10core/tests/device.c
+++ b/dlls/d3d10core/tests/device.c
@@ -6310,6 +6310,14 @@ static void test_depth_stencil_sampling(void)
 
         srv_desc.Format = tests[i].stencil_view_format;
         hr = ID3D10Device_CreateShaderResourceView(device, (ID3D10Resource *)texture, &srv_desc, &stencil_srv);
+        if (hr == E_OUTOFMEMORY)
+        {
+            skip("Could not create SRV for format %#x.\n", srv_desc.Format);
+            ID3D10DepthStencilView_Release(dsv);
+            ID3D10ShaderResourceView_Release(depth_srv);
+            ID3D10Texture2D_Release(texture);
+            continue;
+        }
         ok(SUCCEEDED(hr), "Failed to create stencil shader resource view for format %#x, hr %#x.\n",
                 srv_desc.Format, hr);
 
-- 
2.10.2




More information about the wine-patches mailing list