Tests: verify Xbox shader container, FSSM, and pack parsing contracts #553
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/558"
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 ivall/xcl. Originally posted by amazedturnip on 2026-11-24T01:47:14Z.
Add integration tests in
crates/xcl/tests/xbox_container.rscoveringxcl::gpu::packandxcl::gpu::xboxpublic parsing contracts, stage-name helpers, XDAT/XBCH/FSSM error and fallback paths, andis_data_blockboundaries.What is in it
crates/xcl/tests/xbox_container.rs: add integration tests coveringpack::scan/inflate/name_stage->xbox::is_xbox/parseroundtrips (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_KINDSmapping,InstStats::merge/sorted,header_qwords, XBCH/FSSM error and fallback paths, andis_data_block.Tested
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)Not tested
AI use
Imported from ivall/xcl. Originally posted by towiice on 2026-11-24T02:14:55Z.
Review: COMMENTED
Tested PR head
49e53e9on Windows 11 build 10.0.26300 (26H2), Rust 1.100.0 (stable-x86_64-pc-windows-gnullvm):cargo test -p xcl --test xbox_container -- --test-threads=4: 5 passed, 0 failed (0.01 s):stage_names_and_fssm_helpersis_data_block_distinguishes_code_and_dataxdat_relative_offsets_non_0x18_xdat_dxil_kinds_and_statsxbch_and_fssm_error_and_fallback_pathspack_roundtrip_ms_and_cs_into_xbox_parseAll shader container / FSSM / pack contract tests pass cleanly.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-24T01:56:29Z.
NVIDIA run, since Not tested lists NVIDIA wave32.
Tested
49e53e9c2d00eb6a8e37a70d91d8f472d9bb0dc7, clean worktreestable-x86_64-pc-windows-msvc; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0); debugcargo build --workspace, thencargo test --workspace -- --test-threads=4: 685 passed, 0 failed, 41 ignored (lib 640 / 0 / 21;xbox_container5 / 0 / 0). Same totals as in the description.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareXCL_SAMPLE_*not setNot tested
xbox_container.rsparse on the CPU and touch no GPU, so this run shows they pass with the MSVC toolchain. It adds no wave32 coverage for them.AI use
Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T04:54:05Z.
Test run of
49e53e9c2d00eb6a8e37a70d91d8f472d9bb0dc7on AMD RDNA4. I merged it onto currentmain64b3f35locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 706 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 660 passed, 0 failed, 21 ignoredSKIPPED; thexbox_containertests pass, as do thepacktests (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 ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T13:30:23Z.
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!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:43:29Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by amazedturnip on 2026-11-29T08:44:14Z.
Still merges cleanly onto main (
d8bd9a38) with passing checks; verify Xbox shader container, FSSM, and pack parsing contracts — waiting on maintainer / post-goal review.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:42:58Z.
Triage (#1607) – head
49e53e9No open or merged PR adds these tests.
crates/xcl/tests/xbox_container.rsexercises the publicgpu::xboxandgpu::packAPIs (pack scan/inflate intoparse, XDAT-relative offsets, XBCH/FSSM error and fallback paths,is_data_block,InstStats::merge/sorted,header_qwords). It overlaps a little with the unit tests ingpu/xbox.rs(pc_shaders_are_not_xbox,falls_back_when_header_pointer_is_wrong), but most cases are new. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.