cpu: verify Bink frame allocation through the shared Windows heap #218
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/221"
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?
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.