[PATCH 4/5] d3d9/tests: Skip test_vshader_input() if PS 3.0 isn't supported.
Matteo Bruni
mbruni at codeweavers.com
Wed Mar 8 13:45:47 CST 2017
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
I don't know that any actual GPU / driver combination would trigger
this but nevertheless it should be the right thing to do.
dlls/d3d9/tests/visual.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index c8cab8c..e012d1b 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -7828,6 +7828,12 @@ static void test_vshader_input(void)
IDirect3DDevice9_Release(device);
goto done;
}
+ if (caps.PixelShaderVersion < D3DPS_VERSION(3, 0))
+ {
+ skip("No ps_3_0 support, skipping tests.\n");
+ IDirect3DDevice9_Release(device);
+ goto done;
+ }
hr = IDirect3D9_GetAdapterIdentifier(d3d, D3DADAPTER_DEFAULT, 0, &identifier);
ok(SUCCEEDED(hr), "Failed to get adapter identifier, hr %#x.\n", hr);
--
2.10.2
More information about the wine-patches
mailing list