pixrt10: match build 19041 worker processor affinity #246
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!246
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/246/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?
@bambermf on GitHub · 2026-11-23 07:18 UTC · original
bambermf:port/pix-worker-affinity-19041→main· +19 −1 · 2 files · 1 commits · closed without mergingLibrary / area — pixrt10 worker thread affinity, based on upstream
6a1a4b1.Exports changed — None. The 19041 title initializer is still missing. This ports the mask selection its two worker entry points use.
Source of the behaviour — Build 19041 console pixrt10.dll. Headless IDA shows both worker entry points call RVA 0x1aa64, which gets the mask from RVA 0x1aa18 and passes it to SetThreadAffinityMask.
What was wrong
The shared worker helper selected 0x3000 for any process mask above 0x7f. Build 19041 tests bit six, including for sparse masks.
Measurements
I executed the console instructions at RVAs 0x1aa49 through 0x1aa5b in Unicorn, supplying the process mask after the Windows query. All 256 low-byte values plus three high-bit cases matched the ported rule.
Change and tests
The shared worker pinning path selects the measured rule for build 19041. The regression checks eight process masks across builds 19041, 22000 and 22621. Release tests for pixrt and pixrt10 passed (39 tests), and the PR gate passed. The mask comparison exercised the console calculation independently of host CPU availability. End-to-end startup on 19041 remains pending.
@bambermf on GitHub · 2026-11-23 07:31 UTC · original
Continued in #250
Pull request closed