From 1599683cafa5d046c5e2bc91b5f3d8ad2b9caa5f Mon Sep 17 00:00:00 2001 From: Dennis Schöneberg Date: Mon, 23 Nov 2026 19:32:05 +0100 Subject: d3d12: reset predication in ClearState and align SetPredication / AtomicCopyBuffer validation (#6815) Squash-merged after diff review of PR #6815 --- runtime/test/command_list_test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'runtime/test/command_list_test.cpp') diff --git a/runtime/test/command_list_test.cpp b/runtime/test/command_list_test.cpp index 2ab6b7d20..66750dbb3 100644 --- a/runtime/test/command_list_test.cpp +++ b/runtime/test/command_list_test.cpp @@ -187,12 +187,14 @@ int main() { CHECK(!list.atomic_copy({42, 8, 42, 8, 8, {dependent}})); // onto itself CHECK(!list.atomic_copy({42, 4, 43, 16, 8, {dependent}})); // UINT64 at an offset that is not 8-aligned CHECK(!list.atomic_copy({42, 8, 43, 16, 2, {dependent}})); // neither UINT nor UINT64 - CHECK(!list.atomic_copy({42, 8, 43, 16, 4, {}})); // no dependencies + CHECK(list.atomic_copy({42, 8, 43, 16, 4, {}})); // zero dependencies is valid on Windows D3D12 + CHECK(!list.atomic_copy({42, 8, 43, 16, 4, {{41, 0, 8, 4}}})); // inverted dependent range + CHECK(!list.atomic_copy({42, 8, 43, 16, 4, {{41, 0, 4, 4}}})); // empty dependent range CHECK(!list.atomic_copy({42, 8, 43, 16, 4, {{0, 0, 0, 4}}})); // a null dependent resource CHECK(!list.atomic_copy({0, 8, 43, 16, 4, {dependent}})); CHECK(list.close()); CHECK(!list.discard({40, 0, 0, false, true}) && !list.discard({40, 0, 0, false})); - CHECK(list.commands().size() == 5); + CHECK(list.commands().size() == 6); CHECK(std::get(list.commands()[0]).whole); CHECK(std::get(list.commands()[1]).first_subresource == 2 && std::get(list.commands()[1]).partial && !std::get(list.commands()[1]).whole); -- cgit v1.2.3