Commit f75e2e42 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3d11/tests: Report failure in test_clear_buffer_unordered_access_view() at the first mismatch.

parent e4bc4df0
......@@ -16013,7 +16013,10 @@ static void test_clear_buffer_unordered_access_view(void)
const struct uvec4 broken_result = {uvec4.x, uvec4.x, uvec4.x, uvec4.x}; /* Intel */
data = get_readback_uvec4(&rb, x, 0);
if (!(compare_uvec4(data, &uvec4) || broken(compare_uvec4(data, &broken_result))))
{
all_match = FALSE;
break;
}
}
ok(all_match, "Got {%#x, %#x, %#x, %#x}, expected {%#x, %#x, %#x, %#x} at %u.\n",
data->x, data->y, data->z, data->w, uvec4.x, uvec4.y, uvec4.z, uvec4.w, x);
......@@ -16028,7 +16031,10 @@ static void test_clear_buffer_unordered_access_view(void)
uvec4 = U(uav_desc).Buffer.FirstElement <= x ? fe_uvec4 : uvec4_data[i];
broken_result.x = broken_result.y = broken_result.z = broken_result.w = uvec4.x;
if (!(compare_uvec4(data, &uvec4) || broken(compare_uvec4(data, &broken_result))))
{
all_match = FALSE;
break;
}
}
ok(all_match, "Got {%#x, %#x, %#x, %#x}, expected {%#x, %#x, %#x, %#x} at %u.\n",
data->x, data->y, data->z, data->w, uvec4.x, uvec4.y, uvec4.z, uvec4.w, x);
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