Repository navigation
Conversation
…icked values A reused or lower fence value makes SetEventOnCompletion return at once, so a block read results the GPU had not written yet (ProjectLeonida#278 hit this twice after rebases). Every wait on the main fence now goes through submit_and_wait, which signals the next value and waits for it, including the query blocks that landed with 10 and 11. Fences that belong to one block (ms_fence, the standalone device's) keep their own values.
quackottu
force-pushed
the
test-fence-helper
branch
from
November 22, 2026 04:26
fbb991e to
73342f3
Compare
Contributor
|
Tested A heads-up about the interaction with my open PRs, because git won't flag it:
AI-assisted (Claude Code). |
ItsNotRexed
added a commit
that referenced
this pull request
Nov 22, 2026
ItsNotRexed
added a commit
that referenced
this pull request
Nov 22, 2026
…d_wait #850 moved the waits to a counter, but the 1D-texture block still signalled 8 and #858's predication block 12/13. Once the counter had passed those values, SetEventOnCompletion returned at once and the blocks read results the GPU had not written yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
Contributor
Author
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.
For @traeb0n's finding in #634 (#634 (comment)):
d3d12_vulkan_device_testblocks picked fence values by hand, and a reused or lower value makesSetEventOnCompletionreturn at once, so the block reads results the GPU hasn't written yet.submit_and_waitnext to the mainfence: it signals++fence_lastand waits for it (also checkingGetCompletedValue() >= v).fencegoes through it: the old literals1…7,9, and the10/11the query blocks brought in. No block names a fence number any more, so a new block can't collide with an existing one.ms_fence, the standalone device's fence, the ones in other functions) keep their own values; they can't collide.Rebased on
main4a36bb1. The file changes often, so I'll rebase again right after the next merge round, as the finding suggests.Tested on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0:
d3d12_vulkan_device_testwithLEONIDA_VK_VALIDATION=1passes (exit 0, 0 validation errors; copies, resolves, reserved resources, queries, footprints and tiling all matched).AI-assisted (Claude Code).