Skip to content

Commit

Permalink
tests: Check correct uav_offset in amplification indirect state test.
Browse files Browse the repository at this point in the history
Signed-off-by: Hans-Kristian Arntzen <[email protected]>
  • Loading branch information
HansKristian-Work committed Jun 24, 2024
1 parent 8bb7629 commit 68556ca
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/d3d12_mesh_shader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,16 @@ void test_amplification_shader_execute_indirect_state(void)
expected += num_tasks * num_groups_per_task * tests[i + j].data.prims; /* Every primitive increments counter. */
}

ok(get_readback_uint(&rb, i, 0, 0) == expected, "Test %u: expected %u, got %u.\n", i, expected, get_readback_uint(&rb, i, 0, 0));
if (tests[i].data.indirect_count)
{
ok(get_readback_uint(&rb, tests[i].uav_offset / sizeof(uint32_t), 0, 0) == expected,
"Test %u: expected %u, got %u.\n", i, expected, get_readback_uint(&rb, tests[i].uav_offset / sizeof(uint32_t), 0, 0));
}
else
{
ok(get_readback_uint(&rb, i, 0, 0) == expected, "Test %u: expected %u, got %u.\n",
i, expected, get_readback_uint(&rb, i, 0, 0));
}
}

release_resource_readback(&rb);
Expand Down

0 comments on commit 68556ca

Please sign in to comment.