Matteo Bruni : d3d9/tests: Skip test_vshader_input() if PS 3.0 isn' t supported.

Alexandre Julliard julliard at winehq.org
Thu Mar 9 15:51:34 CST 2017


Module: wine
Branch: master
Commit: 101159309f1a0b1dcdabd9ce1ae09068269e2265
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=101159309f1a0b1dcdabd9ce1ae09068269e2265

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed Mar  8 20:45:47 2017 +0100

d3d9/tests: Skip test_vshader_input() if PS 3.0 isn't supported.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);




More information about the wine-cvs mailing list