Skip to content

Commit

Permalink
tests: bug_if on adreno drivers for fails in test_index_buffer_edge_c…
Browse files Browse the repository at this point in the history
…ase_stream_output

this hardware exhibits nonconformant behavior

Signed-off-by: Mike Blumenkrantz <[email protected]>
  • Loading branch information
zmike authored and HansKristian-Work committed Jan 21, 2025
1 parent de46dc8 commit d881729
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/d3d12_streamout.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ void test_index_buffer_edge_case_stream_output(void)

get_buffer_readback_with_command_list(counter_buffer, DXGI_FORMAT_R32_UINT, &rb, queue, command_list);
counter = get_readback_uint(&rb, 0, 0, 0);
/*
* adreno hardware omits degenerate triangles
*/
bug_if(is_adreno_device(context.device))
ok(counter == 15 * sizeof(struct vec4), "Got unexpected counter %u.\n", counter);
release_resource_readback(&rb);
reset_command_list(command_list, context.allocator);
Expand All @@ -434,6 +438,10 @@ void test_index_buffer_edge_case_stream_output(void)
{
const struct vec4 *expected = &expected_output[i];
data = get_readback_vec4(&rb, i, 0);
/*
* adreno hardware omits degenerate triangles
*/
bug_if(is_adreno_device(context.device))
ok(compare_vec4(data, expected, 1),
"Got {%.8e, %.8e, %.8e, %.8e}, expected {%.8e, %.8e, %.8e, %.8e}.\n",
data->x, data->y, data->z, data->w, expected->x, expected->y, expected->z, expected->w);
Expand Down

0 comments on commit d881729

Please sign in to comment.