Tests: add disasm_e2e multi-program RDNA2 scan and PC DXBC/DXIL cases #524

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

@⁠amazedturnip on GitHub · 2026-11-24 01:17 UTC · original
amazedturnip:xcl/tests-disasm-e2e-containers-fssm-and-all-flag-011102 → main · +66 −0 · 1 files · 1 commits · open

Add two remaining xcl disasm end-to-end CLI tests in crates/xcl/tests/disasm_e2e.rs after rebasing onto upstream/main (which already covers --all, FSSM/XBCH export, and missing-argument paths).

What is in it

  • crates/xcl/tests/disasm_e2e.rs: add disasm_scans_multiple_rdna2_raw_programs (back-to-back s_endpgm-terminated RDNA2 blobs in rdna2-raw scan mode) and disasm_classifies_pc_dxbc_and_dxil_containers (PC dxbc/SHEX and dxil/BC\xc0\xde container classification), reusing the file's existing temp_path, dxbc_container, and program_header helpers

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 -p xcl --test disasm_e2e -- --test-threads=2 — 9 passed, 0 failed, 0 ignored (3x deterministic: 0.62s, 0.41s, 0.21s)

Not tested

  • runtime execution of a retail title (CLI xcl disasm test-only change; no runtime src/ files modified)

AI use

  • Antigravity CLI assisted with rebasing onto upstream/main, trimming superseded tests, running the 3x test verification locally on AMD Radeon (native wave64), and updating this description.
**@⁠amazedturnip** on GitHub · 2026-11-24 01:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/524) `amazedturnip:xcl/tests-disasm-e2e-containers-fssm-and-all-flag-011102` → `main` · +66 −0 · 1 files · 1 commits · open Add two remaining `xcl disasm` end-to-end CLI tests in `crates/xcl/tests/disasm_e2e.rs` after rebasing onto `upstream/main` (which already covers `--all`, FSSM/XBCH export, and missing-argument paths). **What is in it** - `crates/xcl/tests/disasm_e2e.rs`: add `disasm_scans_multiple_rdna2_raw_programs` (back-to-back `s_endpgm`-terminated RDNA2 blobs in `rdna2-raw` scan mode) and `disasm_classifies_pc_dxbc_and_dxil_containers` (PC `dxbc`/`SHEX` and `dxil`/`BC\xc0\xde` container classification), reusing the file's existing `temp_path`, `dxbc_container`, and `program_header` helpers **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 -p xcl --test disasm_e2e -- --test-threads=2` — 9 passed, 0 failed, 0 ignored (3x deterministic: 0.62s, 0.41s, 0.21s) **Not tested** - runtime execution of a retail title (CLI `xcl disasm` test-only change; no runtime `src/` files modified) **AI use** - Antigravity CLI assisted with rebasing onto `upstream/main`, trimming superseded tests, running the 3x test verification locally on AMD Radeon (native wave64), and updating this description.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:24:30 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 03:04 UTC · original

Tested exact head a328c87 (on its base 508a0c7).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 684 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • One earlier run of the same command hung in the lib tests at gpu_uma_import_check_at_init, gpu_typed_buffer_loads_and_stores, gpu_valu_16_and_64_bit and gpu_wave32_and_wave64_src_vccz_execz (the #344 deadlock, which main has too and #443 fixes); I stopped it after 900 s and reran.
    Not tested
  • A retail title or scripts/smoke.ps1 (no title on this machine), AMD, wave64 hardware, a release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 03:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/524#issuecomment-7120740422) Tested exact head `a328c87` (on its base `508a0c7`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **684 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - One earlier run of the same command hung in the lib tests at `gpu_uma_import_check_at_init`, `gpu_typed_buffer_loads_and_stores`, `gpu_valu_16_and_64_bit` and `gpu_wave32_and_wave64_src_vccz_execz` (the #344 deadlock, which `main` has too and #443 fixes); I stopped it after 900 s and reran. **Not tested** - A retail title or `scripts/smoke.ps1` (no title on this machine), AMD, wave64 hardware, a release build. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

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

Test run of a328c8751ac8ab63a239a18c7d087b4ea2cf9441 on AMD RDNA4. I merged it onto current main f4ce27c 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, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 657 passed, 3 failed, 21 ignored, exit code 101; 0 SKIPPED
  • the 3 failures: placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted, d32s8_targets_take_their_own_size_of_video_memory. These three also fail on main f4ce27c with no PR applied (cargo test -p xcl --lib -- --test-threads=4: 657 passed, 3 failed), so they are not from this change. The first is placed_title_textures_share_vram_and_preserve_pixels at cubemap extra_pages must be reused at same va; the other two are PoisonErrors from the lock it poisons (#673 addresses the cascade, #447 the cubemap check). It is intermittent: alone it passes 3 of 3, and in the parallel lib run it failed on 6 of 7 runs at f4ce27c, 2 of 6 at d852f9a and 1 of 3 at 1387b4b on this machine.
  • the disasm_e2e tests are in crates/xcl/tests/ and pass.

Review: Test-only; the containers it disassembles are built in the test (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:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/524#issuecomment-7121614946) Test run of `a328c8751ac8ab63a239a18c7d087b4ea2cf9441` on AMD RDNA4. I merged it onto current `main` `f4ce27c` 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, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **657 passed, 3 failed, 21 ignored**, exit code 101; 0 `SKIPPED` - the 3 failures: `placed_title_textures_share_vram_and_preserve_pixels`, `transitions_apply_when_their_list_is_submitted`, `d32s8_targets_take_their_own_size_of_video_memory`. These three also fail on `main` `f4ce27c` with no PR applied (`cargo test -p xcl --lib -- --test-threads=4`: 657 passed, 3 failed), so they are not from this change. The first is `placed_title_textures_share_vram_and_preserve_pixels` at `cubemap extra_pages must be reused at same va`; the other two are `PoisonError`s from the lock it poisons (#673 addresses the cascade, #447 the cubemap check). It is intermittent: alone it passes 3 of 3, and in the parallel lib run it failed on 6 of 7 runs at `f4ce27c`, 2 of 6 at `d852f9a` and 1 of 3 at `1387b4b` on this machine. - the `disasm_e2e` tests are in `crates/xcl/tests/` and pass. **Review:** Test-only; the containers it disassembles are built in the test (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

@⁠YYchainsAw on GitHub · 2026-11-24 14:56 UTC · original · edited 2026-11-25 02:48 UTC

Tested

  • Windows 11 build 26300, Ryzen 7 8845H, Rust 1.100.0 MSVC, debug build.
  • I manually ran xcl disasm on a synthetic 8-byte input with --offset 4 --length 4 and confirmed it printed 00000004: s_endpgm.
  • Codex ran cargo test --locked -p xcl --test disasm_e2e on main 930e8b49c1c2ec683d22c724a398b39111cd0e56 with the test file from PR commit a328c8751ac8ab63a239a18c7d087b4ea2cf9441 applied: 5 passed, 0 failed.

Not tested

Full workspace suite, GPU tests, or any retail game files.

AI use

Codex (GPT-6) prepared the synthetic input, ran the automated test, and drafted this report. I ran the manual CLI check.

Update: Codex (GPT-6) reran cargo test --locked -p xcl --test disasm_e2e on the exact PR head fdfe5e9 on the same Windows machine. 8 passed, 0 failed, 0 ignored.

**@⁠YYchainsAw** on GitHub · 2026-11-24 14:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/524#issuecomment-7135191330) · edited 2026-11-25 02:48 UTC **Tested** - Windows 11 build 26300, Ryzen 7 8845H, Rust 1.100.0 MSVC, debug build. - I manually ran `xcl disasm` on a synthetic 8-byte input with `--offset 4 --length 4` and confirmed it printed `00000004: s_endpgm`. - Codex ran `cargo test --locked -p xcl --test disasm_e2e` on main `930e8b49c1c2ec683d22c724a398b39111cd0e56` with the test file from PR commit `a328c8751ac8ab63a239a18c7d087b4ea2cf9441` applied: 5 passed, 0 failed. **Not tested** Full workspace suite, GPU tests, or any retail game files. **AI use** Codex (GPT-6) prepared the synthetic input, ran the automated test, and drafted this report. I ran the manual CLI check. Update: Codex (GPT-6) reran cargo test --locked -p xcl --test disasm_e2e on the exact PR head fdfe5e9 on the same Windows machine. 8 passed, 0 failed, 0 ignored.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 13:43 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:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/524#issuecomment-7164194013) 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!
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 02:46 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 02:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/524#issuecomment-7181099900) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
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/524/head:github-bot/gh-524'
git switch 'github-bot/gh-524'

Merge

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