Repository navigation
Runtime: a released fence sets the events still waiting on it; SetEventOnMultipleFenceCompletion(0) is E_INVALIDARG - #1225
Merged
Conversation
…tEventOnMultipleFenceCompletion with no fences is E_INVALIDARG
This was referenced Nov 22, 2026
Contributor
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): 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.
Two fence-event rules where the Vulkan device differed from the PC D3D12 runtime, measured on the host (RTX 5070 and WARP):
FenceWaitDispatcher:cancel(), called from~Fence, now completes each pending entry for the semaphore (callback or event, asrun()does) instead of erasing it, still under the dispatcher mutex and before the semaphore is destroyed.This changes behaviour documented for D3D-30 (@kotorvr):
docs/d3d12_vulkan.mdandd3d12_fence_timing_testpinned the old rules, and both now follow the host measurement. #1161 holds CPU signals on the same fence path: a released fence should drop held signals rather than flush them (flushing would be the VUID-03259 signal #1161 avoids).New test:
d3d12_fence_events_testruns the same checks on the Vulkan device and, when present, on the host default adapter and WARP. It checks events with timeouts, not timing, and exits 77 when no Vulkan device is available.Testing (RTX 5070,
LEONIDA_VK_VALIDATION=1):d3d12_fence_events_test: 3/3 runs pass, 0 validation errors. On main it fails at the released-fence check; with only the dispatcher change it fails at the count-0 check.d3d12_fence_timing_test,d3d12_fence_waiter_test,d3d12_vulkan_device_testpass.AI-assisted.