=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d11/tests: Skip stencil SRV test when SRV creation fails.
Alexandre Julliard
julliard at winehq.org
Fri Jan 27 14:12:23 CST 2017
Module: wine
Branch: master
Commit: 1798864ee29ec9580675294815ae76bae48dc6d9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1798864ee29ec9580675294815ae76bae48dc6d9
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Thu Jan 26 13:07:37 2017 +0100
d3d11/tests: Skip stencil SRV test when SRV creation fails.
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/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);
More information about the wine-cvs
mailing list