cpu: verify Bink frame allocation through the shared Windows heap #221

Manually merged
github merged 1 commit from gh-pr/221/head into gh-pr/221/base 2026-11-26 21:35:19 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-21 18:33 UTC · original
R0Y00:codex/bink-frame-heap-integration → main · +315 −4 · 7 files · 1 commits · merged 2026-11-21 18:35 UTC

Refs #132, #170, #183 and #189.

Run the frame allocation chain with translated descriptor and grouped heap helpers, then call the named imports in the shared desktop xmem.dll. The local profile translates the frame allocator's body, including pitch selection, multi-frame control flow, allocation status, accounting and owner writes. Public CI uses a source-owned outer control and translated MASM fixtures.

Windows verification: build the dev preset and run ctest --preset dev --no-tests=error -R 'frame_to_heap$' -V. With the existing Bink package options enabled, the public and local package suites each passed 36 frame scenarios per link, including the five-plane mask sweep. The recording link uses identical objects, forwards successful calls to the shared xmem.dll, and injects a single failed import. Checks cover exact size and attributes, all destination and pitch fields, plane data/padding, guarded second allocation, matching free, failure accounting and successful retry. Only public source and fixtures are committed. The test supplies the frame metadata.

**@⁠R0Y00** on GitHub · 2026-11-21 18:33 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/221) `R0Y00:codex/bink-frame-heap-integration` → `main` · +315 −4 · 7 files · 1 commits · merged 2026-11-21 18:35 UTC Refs #132, #170, #183 and #189. Run the frame allocation chain with translated descriptor and grouped heap helpers, then call the named imports in the shared desktop xmem.dll. The local profile translates the frame allocator's body, including pitch selection, multi-frame control flow, allocation status, accounting and owner writes. Public CI uses a source-owned outer control and translated MASM fixtures. Windows verification: build the dev preset and run `ctest --preset dev --no-tests=error -R 'frame_to_heap$' -V`. With the existing Bink package options enabled, the public and local package suites each passed 36 frame scenarios per link, including the five-plane mask sweep. The recording link uses identical objects, forwards successful calls to the shared xmem.dll, and injects a single failed import. Checks cover exact size and attributes, all destination and pitch fields, plane data/padding, guarded second allocation, matching free, failure accounting and successful retry. Only public source and fixtures are committed. The test supplies the frame metadata.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:35:18 +00:00
github manually merged commit 3f6ba77457 into gh-pr/221/base 2026-11-26 21:35:19 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.