Repository navigation
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Built and ran d3d12_queue_wait_test at 60223e66 on Windows 11, RTX 5070 Ti: "copy/compute and direct/direct Wait-before-Signal completed", exit 0; ctest -R d3d12_queue_wait -> 2/2 passed.
The control now requires an actual D3D12 fence timeout (not just an elapsed-time check) before the Wait-before-Signal cases proceed, and both paths still complete. No blocking issue.
Flyander
left a comment
There was a problem hiding this comment.
Reviewed the current head 60223e66. The timeout control now exits 0 only for WAIT_TIMEOUT; fence-creation, event-registration, wait errors, and unexpected completion all fail. Removing CTest WILL_FAIL lets the test detect those setup failures. The independent Windows CTest report passes.
|
Tested 60223e6 on Windows 11 24H2 (26100), MSVC 19.44 RelWithDebInfo + Ninja, NVIDIA RTX 3070 / 617.42: pass. No game files. AI-assisted (Claude). |
|
Tested I also ran the same two tests from the same build on AMD Radeon 780M Graphics (Windows driver 32.0.32029.2010). The Vulkan runtime identified the 780M in both runs. The cross-queue waits completed and the unsignaled fence timed out as expected. Both tests passed in 1.55 seconds total. |
|
Independent check of
|
|
Tested
Tested and written by Claude (Claude Code), posting from @theswiss24's account. |
|
Tested 441ccbe on NVIDIA GeForce RTX 4080, driver 617.42: d3d12_queue_wait_test exits 0 and prints "copy/compute and direct/direct Wait-before-Signal completed", and d3d12_queue_wait_test --timeout-control exits 0 and prints "unsignaled fence timed out as expected". The forced CreateFence failure, forced WAIT_FAILED and already-signaled fence controls were not run. AI-assisted. |
|
Tested 441ccbe merged with main 1cc6e3c on Linux/Python 3.12.16: pass (static review only; runtime test not run) The merge is clean (runtime/CMakeLists.txt and runtime/test/d3d12_queue_wait_test.cpp only). The test is a C++ D3D12-over-Vulkan binary that needs the Windows runtime build and a GPU, so I did not build or run it on Linux. Reading the diff: the control now exits 0 only on a real WAIT_TIMEOUT with expect_timeout set, and any other outcome (wait failure, unexpected completion, fence creation failure) returns non-zero, so dropping WILL_FAIL TRUE from the CTest entry is consistent and removes the case where any failure counted as a pass. Main has no later change to these files (last touch e633201), so it is not redundant. |
Claimed on the coordination board as a D3D-97 test follow-up.
d3d12_queue_wait_timeoutusesWILL_FAIL, which can report a pass when fence creation fails before the wait.WaitForSingleObjectfailures also take the same path as a timeout.The control now exits successfully only on
WAIT_TIMEOUT. Setup errors, wait errors and unexpected completion fail directly. The pending event remains alive until process exit. The regular queue-wait test still treats a timeout as a failure. This is separate from the timeout budget adjustment in #2970.Tested
d3d12_queue_waitandd3d12_queue_wait_timeoutpassed on Vulkan.CreateFencefailure and a forcedWAIT_FAILEDboth passed on the old version and failed with the fix. An already signaled fence failed on both versions.git diff --checkpassed. Synthetic fences only.No game files. AI-assisted.