[PATCH 2/8] d3d11/tests: Extend test for ID3D11DeviceContext::UpdateSubresource().

Józef Kucia jkucia at codeweavers.com
Tue Jan 19 15:28:06 CST 2016


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
I also wanted to add tests for the case when box->front and box->back are invalid
but such tests crash with some drivers (e.g. Nvidia on Windows 7, WARP).
On Windows 10, with AMD and Intel drivers, the behavior is the same as in wined3d.
---
 dlls/d3d11/tests/d3d11.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index 5c6efaf..cb3f185 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -4227,6 +4227,9 @@ static void test_update_subresource(void)
     set_box(&box, 4, 4, 0, 3, 1, 1);
     ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)texture, 0, &box,
             bitmap_data, sizeof(*bitmap_data), 0);
+    set_box(&box, 0, 0, 0, 4, 4, 0);
+    ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)texture, 0, &box,
+            bitmap_data, 4 * sizeof(*bitmap_data), 0);
     ID3D11DeviceContext_Draw(context, 4, 0);
     get_texture_readback(backbuffer, &rb);
     for (i = 0; i < 4; ++i)
-- 
2.4.10




More information about the wine-patches mailing list