Tests: verify Xbox shader container, FSSM, and pack parsing contracts #558

Open
github-bot wants to merge 1 commit from github-bot/gh-558 into main AGit
Owner

@⁠amazedturnip on GitHub · 2026-11-24 01:47 UTC · original
amazedturnip:xcl/tests-xbox-container-and-pack-contract-014008 → main · +374 −0 · 1 files · 1 commits · open

Add integration tests in crates/xcl/tests/xbox_container.rs covering xcl::gpu::pack and xcl::gpu::xbox public parsing contracts, stage-name helpers, XDAT/XBCH/FSSM error and fallback paths, and is_data_block boundaries.

What is in it

  • crates/xcl/tests/xbox_container.rs: add integration tests covering pack::scan/inflate/name_stage -> xbox::is_xbox/parse roundtrips (MS/NGG and CS), hw_stage_name/api_stage_name/HwStage::label/Fssm::code_bytes/stage_label, XDAT-relative entry offsets, non-0x18 XDAT/zlib header offsets, DXIL_KINDS mapping, InstStats::merge/sorted, header_qwords, XBCH/FSSM error and fallback paths, and is_data_block.

Tested

  • Hardware / OS / Rust: AMD Ryzen 7 9800X3D 8-Core Processor, Windows 11 Pro 10.0.26100 (Build 26100), rustc 1.94.1 (e408947bf 2026-03-25), stable-x86_64-pc-windows-msvc, debug build
  • AMD (AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64), XCL_ADAPTER=radeon): cargo test --workspace -- --test-threads=2 — 685 passed, 0 failed, 41 ignored (SKIPPED GPU tests: none)
  • Verification / negative control: new test suite — verified 3x deterministic

Not tested

  • retail Xbox Series X|S title (not available on this host)
  • NVIDIA wave32 GPU (not run in this pass; verified on AMD Radeon native wave64)

AI use

  • Antigravity CLI (Gemini 4 Hydrogen (Medium)) assisted with diagnosis, implementation, tests, review, and description; all tests executed locally on AMD Radeon (native wave64).
**@⁠amazedturnip** on GitHub · 2026-11-24 01:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/558) `amazedturnip:xcl/tests-xbox-container-and-pack-contract-014008` → `main` · +374 −0 · 1 files · 1 commits · open Add integration tests in `crates/xcl/tests/xbox_container.rs` covering `xcl::gpu::pack` and `xcl::gpu::xbox` public parsing contracts, stage-name helpers, XDAT/XBCH/FSSM error and fallback paths, and `is_data_block` boundaries. **What is in it** - `crates/xcl/tests/xbox_container.rs`: add integration tests covering `pack::scan`/`inflate`/`name_stage` -> `xbox::is_xbox`/`parse` roundtrips (MS/NGG and CS), `hw_stage_name`/`api_stage_name`/`HwStage::label`/`Fssm::code_bytes`/`stage_label`, XDAT-relative entry offsets, non-0x18 XDAT/zlib header offsets, `DXIL_KINDS` mapping, `InstStats::merge`/`sorted`, `header_qwords`, XBCH/FSSM error and fallback paths, and `is_data_block`. **Tested** - Hardware / OS / Rust: AMD Ryzen 7 9800X3D 8-Core Processor, Windows 11 Pro 10.0.26100 (Build 26100), rustc 1.94.1 (e408947bf 2026-03-25), stable-x86_64-pc-windows-msvc, debug build - AMD (`AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64)`, `XCL_ADAPTER=radeon`): `cargo test --workspace -- --test-threads=2` — 685 passed, 0 failed, 41 ignored (SKIPPED GPU tests: none) - Verification / negative control: new test suite — verified 3x deterministic **Not tested** - retail Xbox Series X|S title (not available on this host) - NVIDIA wave32 GPU (not run in this pass; verified on AMD Radeon native wave64) **AI use** - Antigravity CLI (Gemini 4 Hydrogen (Medium)) assisted with diagnosis, implementation, tests, review, and description; all tests executed locally on AMD Radeon (native wave64).
Add integration tests in crates/xcl/tests/xbox_container.rs covering xcl::gpu::pack and xcl::gpu::xbox public APIs, XDAT/XBCH/FSSM error and fallback paths, stage naming, InstStats, header_qwords, and is_data_block.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:25:41 +00:00
Author
Owner

@⁠fromthemoonx on GitHub · 2026-11-24 01:56 UTC · original

NVIDIA run, since Not tested lists NVIDIA wave32.

Tested

  • Exact head 49e53e9c2d00eb6a8e37a70d91d8f472d9bb0dc7, clean worktree
  • NVIDIA GeForce RTX 3060 (32-lane waves), driver 32.0.16.1088; AMD Ryzen 7 5700X; Windows 11 Pro 26H2 (build 26300.9974); rustc 1.100.0 stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0); debug
  • cargo build --workspace, then cargo test --workspace -- --test-threads=4: 685 passed, 0 failed, 41 ignored (lib 640 / 0 / 21; xbox_container 5 / 0 / 0). Same totals as in the description.
  • SKIPPED (no wave64 on this adapter): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware
  • XCL_SAMPLE_* not set

Not tested

  • The new tests in xbox_container.rs parse on the CPU and touch no GPU, so this run shows they pass with the MSVC toolchain. It adds no wave32 coverage for them.
  • A retail title.

AI use

  • Claude Code (Claude Opus 5.5) ran the build and tests on the machine above and wrote this report from the log.
**@⁠fromthemoonx** on GitHub · 2026-11-24 01:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/558#issuecomment-7119600070) NVIDIA run, since **Not tested** lists NVIDIA wave32. **Tested** - Exact head `49e53e9c2d00eb6a8e37a70d91d8f472d9bb0dc7`, clean worktree - NVIDIA GeForce RTX 3060 (32-lane waves), driver 32.0.16.1088; AMD Ryzen 7 5700X; Windows 11 Pro 26H2 (build 26300.9974); rustc 1.100.0 `stable-x86_64-pc-windows-msvc`; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0); debug - `cargo build --workspace`, then `cargo test --workspace -- --test-threads=4`: **685 passed, 0 failed, 41 ignored** (lib 640 / 0 / 21; `xbox_container` 5 / 0 / 0). Same totals as in the description. - SKIPPED (no wave64 on this adapter): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` - `XCL_SAMPLE_*` not set **Not tested** - The new tests in `xbox_container.rs` parse on the CPU and touch no GPU, so this run shows they pass with the MSVC toolchain. It adds no wave32 coverage for them. - A retail title. **AI use** - Claude Code (Claude Opus 5.5) ran the build and tests on the machine above and wrote this report from the log.
Author
Owner

@⁠MesshM on GitHub · 2026-11-24 04:54 UTC · original

Test run of 49e53e9c2d00eb6a8e37a70d91d8f472d9bb0dc7 on AMD RDNA4. I merged it onto current main 64b3f35 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows, not Wine), Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 706 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 660 passed, 0 failed, 21 ignored
  • 0 SKIPPED; the xbox_container tests pass, as do the pack tests (bounded scans of hostile offsets included).

Review: Test-only, with synthetic containers and no game data. I found nothing to change.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

**@⁠MesshM** on GitHub · 2026-11-24 04:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/558#issuecomment-7122440179) Test run of `49e53e9c2d00eb6a8e37a70d91d8f472d9bb0dc7` on AMD RDNA4. I merged it onto current `main` `64b3f35` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows, not Wine), Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **706 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 660 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; the `xbox_container` tests pass, as do the `pack` tests (bounded scans of hostile offsets included). **Review:** Test-only, with synthetic containers and no game data. I found nothing to change. **Not tested:** no retail title or regression run (I have no unpacked game), no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 13:30 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 13:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/558#issuecomment-7163874143) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/558/head:github-bot/gh-558'
git switch 'github-bot/gh-558'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-558'
git switch 'github-bot/gh-558'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-558'
git switch 'github-bot/gh-558'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-558'
git switch 'main'
git merge --squash 'github-bot/gh-558'
git switch 'main'
git merge --ff-only 'github-bot/gh-558'
git switch 'main'
git merge 'github-bot/gh-558'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.