diff options
| author | PyZik <98541963+PyZikYG@users.noreply.github.com> | 2026-11-25 00:23:37 +0500 |
|---|---|---|
| committer | PyZik <98541963+PyZikYG@users.noreply.github.com> | 2026-11-25 00:23:37 +0500 |
| commit | be010a409c24c5732c3dc6122f28f2a493a5afc6 (patch) | |
| tree | 90b07c7dc8047d0d12e41d102ac254bb3d501fdd /runtime/test/vk_queue_test.cpp | |
| parent | a8ed98c231c79bade00ddd7ccb44186d9f0a0df0 (diff) | |
d3d12: check the copy timestamp fallback family explicitly
Diffstat (limited to 'runtime/test/vk_queue_test.cpp')
| -rw-r--r-- | runtime/test/vk_queue_test.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/test/vk_queue_test.cpp b/runtime/test/vk_queue_test.cpp index 8dad391b0..70acd34ac 100644 --- a/runtime/test/vk_queue_test.cpp +++ b/runtime/test/vk_queue_test.cpp | |||
| @@ -212,6 +212,16 @@ std::uint8_t pattern(std::uint32_t i, std::uint8_t seed) { return std::uint8_t(i | |||
| 212 | int main() { | 212 | int main() { |
| 213 | if (check_picker() || check_queue_slots()) return 1; | 213 | if (check_picker() || check_queue_slots()) return 1; |
| 214 | 214 | ||
| 215 | // Even with a capable dedicated family, the graphics fallback must be usable. With only a caller-owned | ||
| 216 | // graphics queue, its actual family index (which need not be zero) determines support. | ||
| 217 | constexpr std::array<std::uint32_t, 2> copy_only_timestamps{64, 0}; | ||
| 218 | constexpr std::array<std::uint32_t, 2> both_timestamps{64, 32}; | ||
| 219 | static_assert(!copy_queue_timestamp_families_supported(copy_only_timestamps, 1, 0)); | ||
| 220 | static_assert(!copy_queue_timestamp_families_supported(copy_only_timestamps, 1, std::nullopt)); | ||
| 221 | static_assert(!copy_queue_timestamp_families_supported(copy_only_timestamps, 0, 1)); | ||
| 222 | static_assert(copy_queue_timestamp_families_supported(both_timestamps, 1, 0)); | ||
| 223 | static_assert(copy_queue_timestamp_families_supported(both_timestamps, 1, std::nullopt)); | ||
| 224 | |||
| 215 | vktest::Device d; | 225 | vktest::Device d; |
| 216 | d.all_queue_types = true; | 226 | d.all_queue_types = true; |
| 217 | if (!d.create()) { | 227 | if (!d.create()) { |