cpu: verify the grouped Bink allocation descriptor builders #156

Merged
Vonsek merged 1 commit from upstream-pr/157 into main 2026-11-21 17:48:05 +00:00
Vonsek commented 2026-11-21 17:45:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T17:45:47Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6532297963 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/157). Originally posted by [Vonsek](https://github.com/Vonsek) on 2026-11-21T17:45:47Z. --- ## 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.
upstream-sync closed this pull request 2026-11-24 06:41:35 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 06:47:43 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T17:45:58Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7066728224 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/157#issuecomment-7066728224). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-21T17:45:58Z. --- <!-- 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>
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!156
No description provided.