diff options
| author | Dennis Schöneberg <schoenebergde@gmail.com> | 2026-11-23 19:32:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-23 12:32:05 -0600 |
| commit | 1599683cafa5d046c5e2bc91b5f3d8ad2b9caa5f (patch) | |
| tree | 8f03e0b827afa1686a1f6af5a8abf4edcc87cd03 /runtime/test/command_list_test.cpp | |
| parent | 23060e0877d608a9f3273b89797dc802cfa2face (diff) | |
d3d12: reset predication in ClearState and align SetPredication / AtomicCopyBuffer validation (#6815)
Squash-merged after diff review of PR #6815
Diffstat (limited to 'runtime/test/command_list_test.cpp')
| -rw-r--r-- | runtime/test/command_list_test.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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() { | |||
| 187 | CHECK(!list.atomic_copy({42, 8, 42, 8, 8, {dependent}})); // onto itself | 187 | CHECK(!list.atomic_copy({42, 8, 42, 8, 8, {dependent}})); // onto itself |
| 188 | CHECK(!list.atomic_copy({42, 4, 43, 16, 8, {dependent}})); // UINT64 at an offset that is not 8-aligned | 188 | CHECK(!list.atomic_copy({42, 4, 43, 16, 8, {dependent}})); // UINT64 at an offset that is not 8-aligned |
| 189 | CHECK(!list.atomic_copy({42, 8, 43, 16, 2, {dependent}})); // neither UINT nor UINT64 | 189 | CHECK(!list.atomic_copy({42, 8, 43, 16, 2, {dependent}})); // neither UINT nor UINT64 |
| 190 | CHECK(!list.atomic_copy({42, 8, 43, 16, 4, {}})); // no dependencies | 190 | CHECK(list.atomic_copy({42, 8, 43, 16, 4, {}})); // zero dependencies is valid on Windows D3D12 |
| 191 | CHECK(!list.atomic_copy({42, 8, 43, 16, 4, {{41, 0, 8, 4}}})); // inverted dependent range | ||
| 192 | CHECK(!list.atomic_copy({42, 8, 43, 16, 4, {{41, 0, 4, 4}}})); // empty dependent range | ||
| 191 | CHECK(!list.atomic_copy({42, 8, 43, 16, 4, {{0, 0, 0, 4}}})); // a null dependent resource | 193 | CHECK(!list.atomic_copy({42, 8, 43, 16, 4, {{0, 0, 0, 4}}})); // a null dependent resource |
| 192 | CHECK(!list.atomic_copy({0, 8, 43, 16, 4, {dependent}})); | 194 | CHECK(!list.atomic_copy({0, 8, 43, 16, 4, {dependent}})); |
| 193 | CHECK(list.close()); | 195 | CHECK(list.close()); |
| 194 | CHECK(!list.discard({40, 0, 0, false, true}) && !list.discard({40, 0, 0, false})); | 196 | CHECK(!list.discard({40, 0, 0, false, true}) && !list.discard({40, 0, 0, false})); |
| 195 | CHECK(list.commands().size() == 5); | 197 | CHECK(list.commands().size() == 6); |
| 196 | CHECK(std::get<DiscardResource>(list.commands()[0]).whole); | 198 | CHECK(std::get<DiscardResource>(list.commands()[0]).whole); |
| 197 | CHECK(std::get<DiscardResource>(list.commands()[1]).first_subresource == 2 && | 199 | CHECK(std::get<DiscardResource>(list.commands()[1]).first_subresource == 2 && |
| 198 | std::get<DiscardResource>(list.commands()[1]).partial && !std::get<DiscardResource>(list.commands()[1]).whole); | 200 | std::get<DiscardResource>(list.commands()[1]).partial && !std::get<DiscardResource>(list.commands()[1]).whole); |