Commit 53d95529 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3d9/tests: Skip pretransformed_varying_test() on 32-bit WARP.

parent d989d449
......@@ -8150,6 +8150,7 @@ static void pretransformed_varying_test(void)
},
};
IDirect3DVertexDeclaration9 *decl;
D3DADAPTER_IDENTIFIER9 identifier;
IDirect3DDevice9 *device;
IDirect3D9 *d3d;
unsigned int i;
......@@ -8177,6 +8178,18 @@ static void pretransformed_varying_test(void)
goto done;
}
hr = IDirect3D9_GetAdapterIdentifier(d3d, D3DADAPTER_DEFAULT, 0, &identifier);
ok(SUCCEEDED(hr), "Failed to get adapter identifier, hr %#x.\n", hr);
if (adapter_is_warp(&identifier) && sizeof(UINT) == sizeof(UINT_PTR))
{
/* Apparently the "monster" vertex declaration used in this test
* overruns some stack buffer (DrawPrimitiveUP crashes with a
* 0xc0000409 exception) on 32-bit WARP since Win 10 1809. */
skip("Test crashes on recent 32-bit WARP.\n");
IDirect3DDevice9_Release(device);
goto done;
}
hr = IDirect3DDevice9_CreateVertexDeclaration(device, decl_elements, &decl);
ok(hr == D3D_OK, "IDirect3DDevice9_CreateVertexDeclaration returned %08x\n", hr);
hr = IDirect3DDevice9_SetVertexDeclaration(device, decl);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment