cpu: verify the grouped Bink allocation descriptor builders #157

Manually merged
github merged 1 commit from gh-pr/157/head into gh-pr/157/base 2026-11-26 21:31:01 +00:00
Owner

@⁠Vonsek on GitHub · 2026-11-21 17:45 UTC · original
Vonsek:codex/bink-group-descriptors → main · +173 −1 · 7 files · 1 commits · merged 2026-11-21 17:48 UTC

Change

Trace the two Bink leaf functions that build the arrays consumed by the grouped allocator in #136. Initialization places two arrays after the header. Each append saves a destination, selects a padded stride, advances the byte total and increments the entry count.

Verification

At dc08688 on Windows x64, MSVC 19.44 and Python 3.12, both tests passed after building cpu_bink_descriptors_lifted and cpu_bink_package_descriptors:

ctest --preset dev --no-tests=error -R '^cpu_bink_(package_)?descriptors$'

From the build directory the Python check also exited zero:

python -B ../../../tests/cpu/bink_descriptors_check.py --native cpu_bink_descriptors.dll cpu_bink_descriptors_lifted.dll cpu_bink_package_descriptors.dll

Before implementing the breakpoint binding the local translation stopped at the append helper's capacity check. With a full table, the desktop binding reports this stop and the full storage snapshot stays unchanged. A separate public-only configure and build passed ctest --test-dir out/build/public --no-tests=error -R '^cpu_bink_descriptors$'.

Evidence and follow-up

The public control is independently written MASM covered by the repository's MIT license. All inputs, destinations and buffers belong to the test. The optional local comparison uses a fingerprint-checked DLL and the same inputs. Insertion of five entries produced strides of 32, 64, 128, 1280 and 512 bytes. The test does not trace the producer of odd tagged entries. Experiment and build instructions.

Checklist

  • This pull request covers one reviewable behavior.
  • The verification commands and results are included.
  • The extra append exercises the capacity breakpoint.
  • The README and experiment notes describe the public check.
  • No game files, dumps, distribution links or secrets are included.

AI-assisted.

**@⁠Vonsek** on GitHub · 2026-11-21 17:45 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/157) `Vonsek:codex/bink-group-descriptors` → `main` · +173 −1 · 7 files · 1 commits · merged 2026-11-21 17:48 UTC ## Change Trace the two Bink leaf functions that build the arrays consumed by the grouped allocator in #136. Initialization places two arrays after the header. Each append saves a destination, selects a padded stride, advances the byte total and increments the entry count. ## Verification At `dc08688` on Windows x64, MSVC 19.44 and Python 3.12, both tests passed after building `cpu_bink_descriptors_lifted` and `cpu_bink_package_descriptors`: ```powershell ctest --preset dev --no-tests=error -R '^cpu_bink_(package_)?descriptors$' ``` From the build directory the Python check also exited zero: ``` python -B ../../../tests/cpu/bink_descriptors_check.py --native cpu_bink_descriptors.dll cpu_bink_descriptors_lifted.dll cpu_bink_package_descriptors.dll ``` Before implementing the breakpoint binding the local translation stopped at the append helper's capacity check. With a full table, the desktop binding reports this stop and the full storage snapshot stays unchanged. A separate public-only configure and build passed `ctest --test-dir out/build/public --no-tests=error -R '^cpu_bink_descriptors$'`. ## Evidence and follow-up The public control is independently written MASM covered by the repository's MIT license. All inputs, destinations and buffers belong to the test. The optional local comparison uses a fingerprint-checked DLL and the same inputs. Insertion of five entries produced strides of 32, 64, 128, 1280 and 512 bytes. The test does not trace the producer of odd tagged entries. [Experiment and build instructions](https://github.com/Vonsek/Xbox2Windows/blob/dc08688/docs/experiments.md#grouped-allocation-descriptor-builders). ## Checklist - [x] This pull request covers one reviewable behavior. - [x] The verification commands and results are included. - [x] The extra append exercises the capacity breakpoint. - [x] The README and experiment notes describe the public check. - [x] No game files, dumps, distribution links or secrets are included. AI-assisted.
Check the origin of the two arrays before the grouped allocator consumes them, including how repeated appends affect padding and available capacity.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:31:00 +00:00
github manually merged commit dc08688b11 into gh-pr/157/base 2026-11-26 21:31:01 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-21 17:45 UTC · original · edited 2026-11-21 17:48 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T17:48:25.674260Z dc08688 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-21 17:45 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/157#issuecomment-7066728224) · edited 2026-11-21 17:48 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"dc08688b11f32383cb3593ba3e7061557481c241","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-21T17:48:25.674260Z">2026-11-21T17:48:25.674260Z</relative-time> | `dc08688` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
This discussion has been locked. Commenting is limited to contributors.
No description provided.