fix(gpu): treat unreadable memory in ValueWait::holds as not holding #3359
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!3359
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3359"
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?
@reeledMarek on GitHub · 2026-11-26 20:25 UTC · original
reeledMarek:fix/gpu-hold-unreadable-wait→main· +44 −3 · 1 files · 1 commits · openSummary
ValueWait::holdsdocumented unreadable memory as not holding, but returnedNoneviaread(self.address, self.bytes)?—the same sentinel used for unknown D3D12 comparison functions.Held::pumptreatsNoneas an unknown comparison (incrementingdone.unknownand leavingok = true), so queues waiting on unreadable memory ran prematurely instead of staying held, andHeld::blockedomitted those waits because it filters forSome(false).Some(false)whenread(self.address, self.bytes)returnsNone, reservingNonestrictly for unknown comparison functions.comparisons_test_the_masked_valueand adds regression testunreadable_memory_holds_the_queue_without_counting_as_unknown.Verification
cargo clippy -p victory-gpu --all-targets --target x86_64-pc-windows-msvc --locked -- -D warningshold::testsunit tests directly (rustc --edition 2024 --test)cargo test -p xtask --locked@Dukestar69 on GitHub · 2026-11-26 20:28 UTC · original · approved these changes
LGTM — verified on Windows against
origin/main(63bcca4).Some(false)instead ofNonewhenread(self.address, self.bytes)returnsNoneprevents unreadable wait memory from being treated as an unknown comparison (which previously released the waiting queue segment early).cargo test -p victory-gpu --lib hold:: -- --test-threads=1: 11 passed, 0 failed (includingunreadable_memory_holds_the_queue_without_counting_as_unknown).cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.