upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/d3d12_queue_handover_test.cpp
diff options
context:
space:
mode:
authorAlxcBTW <187763517+AlxcBTW@users.noreply.github.com>2026-11-22 22:20:36 +0100
committerAlxcBTW <187763517+AlxcBTW@users.noreply.github.com>2026-11-22 22:20:36 +0100
commit48cee7c2c69e502cc864b0789a9cf5bb88e98658 (patch)
tree52fd1d94d86ee5fe479111579e48c696e18d42cf /runtime/test/d3d12_queue_handover_test.cpp
parent0d75876278a3f6b238a8667cf42c66cf1ae1d99a (diff)
Queue holds: second review fixes (claim after submit, presenter locking and bound, teardown pump, tests)
- A Signal counts as submitted only after vkQueueSubmit succeeded: a failed submit releases no waiter and the retry goes through. - ~VulkanQueue pumps after dropping held work; fence keep-alives are also drained in wait() and marker(). - VulkanPresenter: counters are atomics, read_back/enable_capture take the presenter mutex, set_abort has its own mutex, a deferred present reports not tearing, and at most 8 presents queue up before the caller waits. - Tests: three presents (blit, blank, composed) queued behind held work run in order, a present behind a destroyed queue's held work runs, a failed Signal does not release its waiters; the handover modes also run on the host runtime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/d3d12_queue_handover_test.cpp')
-rw-r--r--runtime/test/d3d12_queue_handover_test.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/runtime/test/d3d12_queue_handover_test.cpp b/runtime/test/d3d12_queue_handover_test.cpp
index d3ed188f6..1fabcfb4e 100644
--- a/runtime/test/d3d12_queue_handover_test.cpp
+++ b/runtime/test/d3d12_queue_handover_test.cpp
@@ -785,11 +785,8 @@ int main(int argc, char** argv) {
785 std::fprintf(stderr, "%u validation errors\n", vk.validation_errors()); 785 std::fprintf(stderr, "%u validation errors\n", vk.validation_errors());
786 return 1; 786 return 1;
787 } 787 }
788 if (two_queues || shared_queue) { 788 // Every mode ends with the same cases on the host runtime: the expected data is the CPU's pattern in all of
789 deadline = 0; 789 // them, so the host run shows the cases are valid D3D12 and the layer's modes are held to the same bar.
790 return 0;
791 }
792
793 std::wstring name; 790 std::wstring name;
794 if (auto host = native_device(name)) { 791 if (auto host = native_device(name)) {
795 arm("host runtime", 300000); 792 arm("host runtime", 300000);