[PATCH 11/11] d3d11/tests: Skip stencil SRV test when SRV creation fails.
Józef Kucia
jkucia at codeweavers.com
Thu Jan 26 06:07:37 CST 2017
This seems to be consistent failure on some hardware:
https://test.winehq.org/data/3c54d4fb6926195e43a1163b0a243d2614a5951f/win8_fg-acer64-w8-t32/d3d11:d3d11.html
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/d3d11/tests/d3d11.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index c906121..99270d2 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -6624,6 +6624,14 @@ static void test_depth_stencil_sampling(void)
srv_desc.Format = tests[i].stencil_view_format;
hr = ID3D11Device_CreateShaderResourceView(device, (ID3D11Resource *)texture, &srv_desc, &stencil_srv);
+ if (hr == E_OUTOFMEMORY)
+ {
+ skip("Could not create SRV for format %#x.\n", srv_desc.Format);
+ ID3D11DepthStencilView_Release(dsv);
+ ID3D11ShaderResourceView_Release(depth_srv);
+ ID3D11Texture2D_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