[BUNDLE] Formats (XMA, BCPack, texture detiling): 12 PRs, #96 #172 #183 #351 #364 #603 #629 #658 #992 #993 #1016 #1205 #1451

Closed
MamaLeVrai wants to merge 24 commits from upstream-pr/1452 into main
MamaLeVrai commented 2026-11-24 18:06:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T18:06:10Z.


One PR in place of 12. Twelve PRs on victory-formats: XMA decoding (frame boundaries, loops, tables, bit reads, VLC), BCPack (BC7 dictionary indices) and texture detiling. Every head is merged unchanged onto main (ffe310e), and the result is built and tested together.

For reviewers and for anyone verifying with an agent (Claude, Codex, a person): this is a [BUNDLE] PR. The re-verification commands are below, so one run covers all of it.

What is inside

PR Author Head Title
#96 tedin7 ba42db643 xma: start the frame after a continuation at the next packet that has frames
#172 TG0000 4eb0898b3 XMA: cache IMDCT rotation tables per subframe size
#183 AnoHunted d4d182204 XMA: noise tests, and end a frame at its data instead of looping forever
#351 pedrofort 93a24b7cd Formats: reject overlapping texture depth slices
#364 pedrofort e50375659 XMA: accelerate VLC decoding with an eight-bit prefix lookup
#603 AwsAli05 705a2f634 Formats: inline repeated micro-tile copies when detiling textures
#629 AlanQiang0418 350f91c23 Reject multisampled linear texture layouts
#658 coderanonymus 0ecaa8cb9 BCPack: read BC7 dictionary indices from the right offset
#992 NATON4 87f7cb894 Formats: XMA bit reads of 0 or more than 32 bits do not overflow a shift
#993 TG0000 64b80c310 Formats: share immutable texture swizzle tables
#1016 heromike405-arch 03a6f2290 XMA: gather frame payloads one byte at a time
#1205 geiyiliyabumo d3867e689 Formats: add 7 invariant unit tests for xma/tables.rs

All of them merge with no conflict and no change of mine.

Left out, and why

  • #703, #1097, #1258: each conflicts with the PRs above in the file it edits (bcpack.rs, texture.rs, xma.rs); they need a rebase after these land.

Verification

Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):

Check Result
cargo clippy --workspace --all-targets --locked -- -D warnings clean
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings clean
cargo test --workspace --locked 365 passed, 0 failed, 8 ignored (main: 342 passed, 6 ignored)

The title was not run, so this says nothing about in-game effect. No game data is used or committed.

Re-verify in one go

git fetch https://github.com/MamaLeVrai/VIctory.git bundle/formats
git checkout FETCH_HEAD
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo test --workspace --locked

To confirm that no component PR moved since this was built, compare each Head above with gh pr view <n> --repo Marvisak/VIctory --json headRefOid. If one differs, the branch needs a rebuild: merge the new head in the same order.

If this lands

The component heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. Merging them one by one instead works too, with the exceptions noted above.

AI-assisted (Claude Code); no game data.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6588273825 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1452). Originally posted by [MamaLeVrai](https://github.com/MamaLeVrai) on 2026-11-24T18:06:10Z. --- **One PR in place of 12.** Twelve PRs on `victory-formats`: XMA decoding (frame boundaries, loops, tables, bit reads, VLC), BCPack (BC7 dictionary indices) and texture detiling. Every head is merged unchanged onto `main` (`ffe310e`), and the result is built and tested together. > For reviewers and for anyone verifying with an agent (Claude, Codex, a person): this is a `[BUNDLE]` PR. The re-verification commands are below, so one run covers all of it. ## What is inside | PR | Author | Head | Title | |---|---|---|---| | #96 | tedin7 | `ba42db643` | xma: start the frame after a continuation at the next packet that has frames | | #172 | TG0000 | `4eb0898b3` | XMA: cache IMDCT rotation tables per subframe size | | #183 | AnoHunted | `d4d182204` | XMA: noise tests, and end a frame at its data instead of looping forever | | #351 | pedrofort | `93a24b7cd` | Formats: reject overlapping texture depth slices | | #364 | pedrofort | `e50375659` | XMA: accelerate VLC decoding with an eight-bit prefix lookup | | #603 | AwsAli05 | `705a2f634` | Formats: inline repeated micro-tile copies when detiling textures | | #629 | AlanQiang0418 | `350f91c23` | Reject multisampled linear texture layouts | | #658 | coderanonymus | `0ecaa8cb9` | BCPack: read BC7 dictionary indices from the right offset | | #992 | NATON4 | `87f7cb894` | Formats: XMA bit reads of 0 or more than 32 bits do not overflow a shift | | #993 | TG0000 | `64b80c310` | Formats: share immutable texture swizzle tables | | #1016 | heromike405-arch | `03a6f2290` | XMA: gather frame payloads one byte at a time | | #1205 | geiyiliyabumo | `d3867e689` | Formats: add 7 invariant unit tests for xma/tables.rs | All of them merge with no conflict and no change of mine. ## Left out, and why - **#703**, **#1097**, **#1258**: each conflicts with the PRs above in the file it edits (`bcpack.rs`, `texture.rs`, `xma.rs`); they need a rebase after these land. ## Verification Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain): | Check | Result | |---|---| | `cargo clippy --workspace --all-targets --locked -- -D warnings` | clean | | `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` | clean | | `cargo test --workspace --locked` | 365 passed, 0 failed, 8 ignored (`main`: 342 passed, 6 ignored) | The title was not run, so this says nothing about in-game effect. No game data is used or committed. ## Re-verify in one go ```powershell git fetch https://github.com/MamaLeVrai/VIctory.git bundle/formats git checkout FETCH_HEAD cargo clippy --workspace --all-targets --locked -- -D warnings cargo clippy --workspace --all-targets --all-features --locked -- -D warnings cargo test --workspace --locked ``` To confirm that no component PR moved since this was built, compare each `Head` above with `gh pr view <n> --repo Marvisak/VIctory --json headRefOid`. If one differs, the branch needs a rebuild: merge the new head in the same order. ## If this lands The component heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. Merging them one by one instead works too, with the exceptions noted above. AI-assisted (Claude Code); no game data. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
copilot-pull-request-reviewer[bot commented 2026-11-24 19:03:23 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T18:06:24Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

<!-- greyfinch-sync:Marvisak/VIctory:review:6044729018 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1452#pullrequestreview-6044729018). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/copilot-pull-request-reviewer%5Bbot%5D) on 2026-11-24T18:06:24Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
upstream-sync closed this pull request 2026-11-25 01:06:35 +00:00
Marvisak commented 2026-11-25 01:08:13 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:40:36Z.


Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148760146 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1452#issuecomment-7148760146). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:40:36Z. --- Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

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
Marvisak/VIctory!1451
No description provided.