Jactry Zeng : d3d9/tests: Add tests for 32-bit depth format support.

Alexandre Julliard julliard at winehq.org
Tue Jun 25 17:25:49 CDT 2019


Module: wine
Branch: master
Commit: f090548ef251662c5a856d86fae2060dc5b17879
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f090548ef251662c5a856d86fae2060dc5b17879

Author: Jactry Zeng <jzeng at codeweavers.com>
Date:   Tue Jun 25 02:47:43 2019 +0430

d3d9/tests: Add tests for 32-bit depth format support.

Signed-off-by: Jactry Zeng <jzeng at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d9/tests/device.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index f5c8972..c59b1f7 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -11833,6 +11833,16 @@ static void test_check_device_format(void)
         }
     }
 
+    hr = IDirect3D9_CheckDepthStencilMatch(d3d, D3DADAPTER_DEFAULT,
+            D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8, D3DFMT_A8R8G8B8, D3DFMT_D32);
+    todo_wine ok(hr == D3DERR_NOTAVAILABLE || broken(hr == D3DERR_INVALIDCALL /* Windows 10 */),
+            "Got unexpected hr %#x.\n", hr);
+
+    hr = IDirect3D9_CheckDepthStencilMatch(d3d, D3DADAPTER_DEFAULT,
+            D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8, D3DFMT_R5G6B5, D3DFMT_D32);
+    todo_wine ok(hr == D3DERR_NOTAVAILABLE || broken(hr == D3DERR_INVALIDCALL /* Windows 10 */),
+            "Got unexpected hr %#x.\n", hr);
+
     IDirect3D9_Release(d3d);
 }
 




More information about the wine-cvs mailing list