Honor the guest mask in Wait32BitValueX #259
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!259
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-259"
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?
@erdtreefaithful on GitHub · 2026-12-05 22:17 UTC · original
erdtreefaithful:feature/honor-wait32-mask→main· +426 −25 · 4 files · 1 commits · merged 2026-12-05 22:51 UTCHonor the guest mask in Wait32BitValueX
Problem
The 32-bit wait handler drops the guest's mask. A wait for the low 16 bits to equal 1 therefore stays pending on 0xabcd0001. The same predicate is used to inspect pending GPU writes.
Changes
Carry the mask from the guest call into ValueWait and apply it to the observed word before comparing with the reference. Use the same predicate for a pending producer and preserve its fence dependency. Keep the 64-bit wait's full-width comparison. A title can use part of a word as a synchronization field while storing unrelated flags in the remaining bits. Dependent work resumes when the selected bits satisfy the wait and its producer has completed.