GPU: a wait on memory that cannot be read yet holds its queue (#2604) #2693
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2693
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2693/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Calvix2k on GitHub · 2026-11-25 18:20 UTC · original
Calvix2k:codex/gpu-unreadable-wait→main· +50 −4 · 1 files · 1 commits · closed without mergingFixes #2604.
ValueWait::holdsreturnedNoneboth for a comparison we do not know (counted by the caller, taken as holding) and for memory that cannot be read, which the doc comment says is taken as not holding.Held::pumptherefore counted an unreadable value's wait as an unknown comparison and ran the segment at once, before the work that would write the value, andHeld::blockedleft it out of the unmet waits.Unreadable memory now returns
Some(false): the segment waits until the value reads (the 2 ms timer tests held work, and the 10 s safety valve still releases a wait nothing satisfies).Noneis left for a comparison we do not know, so the frame's unknown count says what it claims to and no longer includes waits that are merely early.The test queues a wait on unmapped memory: nothing runs, no unknown is counted, and
blockedlists it as not holding; once the memory maps, the segment runs. On the old code it runs at once and counts one unknown.Tests:
cargo test -p victory-gpu --lib --locked hold::(11 passed),cargo clippy -p victory-gpu --all-targetsclean.@Calvix2k on GitHub · 2026-11-25 18:34 UTC · original
Consolidating on #2605: it is earlier, green, and already has the
ALWAYScase the review found missing here (anALWAYScomparison does not depend on the value, so an unreadable address must not stall it). Its body also carries the same unreadable-holds-queue change and the regression coverage, so there is nothing here to keep. Closing in its favour.Pull request closed