d3d11/tests: Ignore random WARP failures in test_pipeline_statistics_query.
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
50830170eb
commit
d741742e32
|
@ -5900,6 +5900,7 @@ static void test_occlusion_query(void)
|
|||
|
||||
static void test_pipeline_statistics_query(void)
|
||||
{
|
||||
static const D3D11_QUERY_DATA_PIPELINE_STATISTICS zero_data = {0};
|
||||
static const struct vec4 red = {1.0f, 0.0f, 0.0f, 1.0f};
|
||||
static const float white[] = {1.0f, 1.0f, 1.0f, 1.0f};
|
||||
|
||||
|
@ -5947,18 +5948,29 @@ static void test_pipeline_statistics_query(void)
|
|||
|
||||
ID3D11DeviceContext_End(context, query);
|
||||
get_query_data(context, query, &data, sizeof(data));
|
||||
ok(data.IAVertices == 4, "Got unexpected IAVertices count: %u.\n", (unsigned int)data.IAVertices);
|
||||
ok(data.IAPrimitives == 2, "Got unexpected IAPrimitives count: %u.\n", (unsigned int)data.IAPrimitives);
|
||||
ok(data.VSInvocations == 4, "Got unexpected VSInvocations count: %u.\n", (unsigned int)data.VSInvocations);
|
||||
ok(!data.GSInvocations, "Got unexpected GSInvocations count: %u.\n", (unsigned int)data.GSInvocations);
|
||||
ok(!data.GSPrimitives, "Got unexpected GSPrimitives count: %u.\n", (unsigned int)data.GSPrimitives);
|
||||
ok(data.CInvocations == 2, "Got unexpected CInvocations count: %u.\n", (unsigned int)data.CInvocations);
|
||||
ok(data.CPrimitives == 2, "Got unexpected CPrimitives count: %u.\n", (unsigned int)data.CPrimitives);
|
||||
todo_wine
|
||||
ok(!data.PSInvocations, "Got unexpected PSInvocations count: %u.\n", (unsigned int)data.PSInvocations);
|
||||
ok(!data.HSInvocations, "Got unexpected HSInvocations count: %u.\n", (unsigned int)data.HSInvocations);
|
||||
ok(!data.DSInvocations, "Got unexpected DSInvocations count: %u.\n", (unsigned int)data.DSInvocations);
|
||||
ok(!data.CSInvocations, "Got unexpected CSInvocations count: %u.\n", (unsigned int)data.CSInvocations);
|
||||
|
||||
/* WARP devices randomly return all-zeroed structures as if the draw did not happen. Flushing and
|
||||
* sleeping a second before ending the query reduces the likelyhood of hitting the bug a lot, but
|
||||
* does not eliminate it entirely. To make things work reliably ignore such broken results. */
|
||||
if (is_warp_device(device) && !memcmp(&data, &zero_data, sizeof(data)))
|
||||
{
|
||||
win_skip("WARP device randomly returns zeroed query results.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
ok(data.IAVertices == 4, "Got unexpected IAVertices count: %u.\n", (unsigned int)data.IAVertices);
|
||||
ok(data.IAPrimitives == 2, "Got unexpected IAPrimitives count: %u.\n", (unsigned int)data.IAPrimitives);
|
||||
ok(data.VSInvocations == 4, "Got unexpected VSInvocations count: %u.\n", (unsigned int)data.VSInvocations);
|
||||
ok(!data.GSInvocations, "Got unexpected GSInvocations count: %u.\n", (unsigned int)data.GSInvocations);
|
||||
ok(!data.GSPrimitives, "Got unexpected GSPrimitives count: %u.\n", (unsigned int)data.GSPrimitives);
|
||||
ok(data.CInvocations == 2, "Got unexpected CInvocations count: %u.\n", (unsigned int)data.CInvocations);
|
||||
ok(data.CPrimitives == 2, "Got unexpected CPrimitives count: %u.\n", (unsigned int)data.CPrimitives);
|
||||
todo_wine
|
||||
ok(!data.PSInvocations, "Got unexpected PSInvocations count: %u.\n", (unsigned int)data.PSInvocations);
|
||||
ok(!data.HSInvocations, "Got unexpected HSInvocations count: %u.\n", (unsigned int)data.HSInvocations);
|
||||
ok(!data.DSInvocations, "Got unexpected DSInvocations count: %u.\n", (unsigned int)data.DSInvocations);
|
||||
ok(!data.CSInvocations, "Got unexpected CSInvocations count: %u.\n", (unsigned int)data.CSInvocations);
|
||||
}
|
||||
|
||||
ID3D11DeviceContext_Begin(context, query);
|
||||
draw_color_quad(&test_context, &red);
|
||||
|
|
Loading…
Reference in New Issue