pixrt10: match build 19041 worker processor affinity #246

Closed
github-bot wants to merge 1 commit from gh-pr/246/head into gh-pr/246/base
Owner

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

Library / 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.

Process mask Main 19041 console and port
0 0x60 0x30
0x40 0x60 0x60
0x80 0x3000 0x30
0xff 0x3000 0x60

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:18 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/246) `bambermf:port/pix-worker-affinity-19041` → `main` · +19 −1 · 2 files · 1 commits · closed without merging **Library / 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. | Process mask | Main | 19041 console and port | |---|---|---| | 0 | 0x60 | 0x30 | | 0x40 | 0x60 | 0x60 | | 0x80 | 0x3000 | 0x30 | | 0xff | 0x3000 | 0x60 | ### 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:15:39 +00:00
github-bot closed this pull request 2026-11-26 06:15:40 +00:00
Author
Owner

@⁠bambermf on GitHub · 2026-11-23 07:31 UTC · original

Continued in #250

**@⁠bambermf** on GitHub · 2026-11-23 07:31 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/246#issuecomment-7094426286) Continued in #250

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.