diff options
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); |