Honor the guest mask in Wait32BitValueX #259

Manually merged
github merged 1 commit from github-bot/gh-259 into gh-pr/259/base 2026-12-06 00:55:51 +00:00 AGit
Owner

@⁠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 UTC

Honor 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.

**@⁠erdtreefaithful** on GitHub · 2026-12-05 22:17 UTC · [original](https://github.com/gamingwithhomie/larp/pull/259) `erdtreefaithful:feature/honor-wait32-mask` → `main` · +426 −25 · 4 files · 1 commits · merged 2026-12-05 22:51 UTC # Honor 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 22:21:33 +00:00
github-bot changed target branch from main to gh-pr/259/base 2026-12-05 22:55:35 +00:00
github-bot referenced this pull request from a commit 2026-12-06 00:55:31 +00:00
github manually merged commit 7f6b7a3b86 into gh-pr/259/base 2026-12-06 00:55:51 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.