Repository navigation
D3D-97: fail queue wait test safely on timeout - #1689
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
Conversation
End a timed-out cross-queue test before the fence dispatcher can touch a closed event or queue teardown can wait forever. Add a deliberately unsignaled fence control so CTest covers the failure path. AI-assisted (Codex).
Contributor
|
Tested e633201 on RTX 4070 SUPER (NVIDIA 616.64) and Intel UHD 770 (101.7092), Windows 11, MSVC 19.44: pass
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: #1548 (comment)
Related: #1404 and #1654 (separate runtime retirement fix; this test change does not depend on it).
What and why
On a failed cross-queue Wait-before-Signal run, the test closed an event while the fence dispatcher could still signal it, then tried to unblock queued waits by CPU-signalling gate value 1 after queue signals had claimed value 2. That lower fallback is dropped, and destructors can hang in vkQueueWaitIdle or use a closed event.
The success path is unchanged. On timeout or incomplete submission, the test now reports failure and exits the process before closing a registered event or destroying possibly blocked queues and fences. A second CTest case creates a deliberately unsignaled synthetic fence and requires the timeout path to exit promptly with status 1.
Tested
Windows 11, GeForce RTX 3060 (driver 621.01), MSVC 19.44/Ninja, Vulkan SDK 1.4.363.0: built d3d12_queue_wait_test after rebasing onto main a0acd33; CTest d3d12_queue_wait and d3d12_queue_wait_timeout: 2/2 passed with VK_LOADER_LAYERS_DISABLE=
implicit. Direct timeout control printed the expected timeout message and exited 1. git diff --check passed.Vulkan validation on current main still reports VUID-VkSubmitInfo-pSignalSemaphores-03242 from its shared retirement timeline; #1654 separately addresses that runtime bug. I do not claim a clean validation run for this PR.
Checklist