[PATCH v2 1/7] d3d8/tests: Add a test for CheckDeviceFormat() with an unsupported adapter format.
Matteo Bruni
mbruni at codeweavers.com
Tue Mar 12 15:25:04 CDT 2019
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
v2: Get rid of broken(), it can return D3DERR_NOTAVAILABLE with the
gdi renderer too. (Henri)
dlls/d3d8/tests/device.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index 51dd3aef579..d5989b8b09a 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -8148,6 +8148,13 @@ static void test_check_device_format(void)
ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#x, device type %#x.\n", hr, device_type);
}
+ hr = IDirect3D8_CheckDeviceFormat(d3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, D3DFMT_A8R8G8B8,
+ 0, D3DRTYPE_TEXTURE, D3DFMT_X8R8G8B8);
+ ok(hr == D3DERR_NOTAVAILABLE, "Got unexpected hr %#x.\n", hr);
+ hr = IDirect3D8_CheckDeviceFormat(d3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8,
+ 0, D3DRTYPE_TEXTURE, D3DFMT_X8R8G8B8);
+ ok(hr == D3D_OK || hr == D3DERR_NOTAVAILABLE, "Got unexpected hr %#x.\n", hr);
+
hr = IDirect3D8_CheckDeviceFormat(d3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8,
0, D3DRTYPE_VERTEXBUFFER, D3DFMT_VERTEXDATA);
todo_wine ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#x.\n", hr);
--
2.19.2
More information about the wine-devel
mailing list