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

Merged
R0Y00 merged 1 commit from upstream-pr/221 into main 2026-11-21 18:35:29 +00:00
R0Y00 commented 2026-11-21 18:33:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T18:33:14Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6532794820 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/221). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T18:33:14Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:41:52 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!218
No description provided.