Skip to content

Commit

Permalink
[vk] fix backend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicebyte committed Jan 12, 2024
1 parent 263fc99 commit cbda9d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/vk-backend-tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ static void test_barrier(
VkImageLayout expected_dst_layout) {
ngfvk_barrier_data bar;

const ngfvk_sync_req sync_req = {{dst_access_mask, dst_stage_mask}, expected_dst_layout};
const bool barrier_necessary =
ngfvk_sync_barrier(sync_state, dst_stage_mask, dst_access_mask, expected_dst_layout, &bar);
ngfvk_sync_barrier(sync_state, &sync_req, &bar);
const bool barrier_expected =
expected_src_stage_mask != 0 || (expected_src_layout != expected_dst_layout);
if (!barrier_expected) {
Expand Down

0 comments on commit cbda9d9

Please sign in to comment.