Tests: xcl disasm --hex dumps the FSSM data after the code #896

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

@⁠Koro4e on GitHub · 2026-11-24 07:53 UTC · original
Koro4e:disasm-hex-e2e → main · +95 −0 · 1 files · 1 commits · open

xcl disasm --hex for a console container switches the FSSM dump to all header qwords and adds a hexdump of the bytes after the code; nothing covered that. This builds a minimal console CS container (the construction follows tests/gpu_compute_e2e.rs: DXBC → DXIL part → XDAT → XBCH (zlib) → FSSM with a code pointer) with four trailer bytes after the code, and checks what the flag changes.

Tests only - no code touched.

What is in it

  • crates/xcl/tests/disasm_e2e.rs: hex_flag_dumps_the_fssm_data_after_the_code - the plain run's header dump stops at +0x140 (up to +0x140; --hex: all) and prints no data dump; the --hex run drops the limit notice and dumps the code trailer (aa bb cc dd)

Tested

  • cargo test -p xcl --test disasm_e2e: 2 passed (the new one plus the existing byte-range test), 0 failed, 0 ignored
  • the whole suite was not rerun on this PR: the GPU is busy with another process on this machine and most of the remaining tests need it. The last full-suite run on this machine, on main earlier today: cargo test --workspace --no-fail-fast -- --test-threads=1: 708 passed, 5 failed, 41 ignored, 17 test binaries; the 5 failures are the GPU tests' VRM/device-removed cascade on this 12 GiB RTX 3060 (driver 617.14), each passes when run on its own. Environmental, unrelated to this change.
  • Windows 11 build 26200, Rust 1.100.0 (stable-x86_64-pc-windows-msvc)

Regression run

  • not needed: no change to crates/xcl/src (the test calls the shipped xcl disasm through a fresh debug build)

Not tested

  • AMD GPUs; the retail title

AI use

  • AI-assisted: yes. Written with an AI agent (DeepAI Code) with GLM 5.3 Flash (Z.ai): found the gap, wrote the test and this description.
**@⁠Koro4e** on GitHub · 2026-11-24 07:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/896) `Koro4e:disasm-hex-e2e` → `main` · +95 −0 · 1 files · 1 commits · open `xcl disasm --hex` for a console container switches the FSSM dump to all header qwords and adds a hexdump of the bytes after the code; nothing covered that. This builds a minimal console CS container (the construction follows tests/gpu_compute_e2e.rs: DXBC → DXIL part → XDAT → XBCH (zlib) → FSSM with a code pointer) with four trailer bytes after the code, and checks what the flag changes. Tests only - no code touched. **What is in it** - crates/xcl/tests/disasm_e2e.rs: `hex_flag_dumps_the_fssm_data_after_the_code` - the plain run's header dump stops at +0x140 (`up to +0x140; --hex: all`) and prints no data dump; the `--hex` run drops the limit notice and dumps the code trailer (`aa bb cc dd`) **Tested** - `cargo test -p xcl --test disasm_e2e`: 2 passed (the new one plus the existing byte-range test), 0 failed, 0 ignored - the whole suite was not rerun on this PR: the GPU is busy with another process on this machine and most of the remaining tests need it. The last full-suite run on this machine, on main earlier today: `cargo test --workspace --no-fail-fast -- --test-threads=1`: 708 passed, 5 failed, 41 ignored, 17 test binaries; the 5 failures are the GPU tests' VRM/device-removed cascade on this 12 GiB RTX 3060 (driver 617.14), each passes when run on its own. Environmental, unrelated to this change. - Windows 11 build 26200, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`) **Regression run** - not needed: no change to `crates/xcl/src` (the test calls the shipped `xcl disasm` through a fresh debug build) **Not tested** - AMD GPUs; the retail title **AI use** - AI-assisted: yes. Written with an AI agent (DeepAI Code) with GLM 5.3 Flash (Z.ai): found the gap, wrote the test and this description.
The full-hex path of the console-container dump (all header
qwords plus a hexdump of the bytes after the code) had no test.
This builds a minimal console CS container (the construction
follows tests/gpu_compute_e2e.rs) and checks the plain run stops
the header dump at +0x140 while --hex prints the trailing data.

Assisted-by: DeepAI Code (GLM 5.3 Flash)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:36:02 +00:00
Author
Owner

@⁠SlopTart on GitHub · 2026-11-24 09:34 UTC · original

Linux / AMD RDNA3 datapoint.

Merged state: head 4e1cda6 onto main 09940bb, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 707 passed, 10 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). disasm --hex FSSM dump green.

Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.

Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross x86_64-pc-windows-gnu, XCL_NETWORK=0, release profile, --test-threads=4. My Linux rows: #42 / #718.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-24 09:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/896#issuecomment-7127597641) Linux / AMD RDNA3 datapoint. **Merged state:** head `4e1cda6` onto main `09940bb`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **707 passed, 10 failed, 41 ignored**; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). disasm --hex FSSM dump green. **Not tested:** retail titles (none here), Windows, RDNA4. Counts only, no game data. **Machine:** RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross `x86_64-pc-windows-gnu`, `XCL_NETWORK=0`, release profile, `--test-threads=4`. My Linux rows: #42 / #718. AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:50 UTC · original

Empirical test report (4e1cda6e)

PR #896 was checked at commit 4e1cda6e1f4828e501c259a80bd9e6cc16bf1a35. The diff against origin/main adds one integration test and its synthetic fixture in crates/xcl/tests/disasm_e2e.rs.

Hardware / environment

  • Windows x64, build 10.0.26200, on an AuthenticAMD x64 CPU (family 23, model 113, stepping 0). The focused test used XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1. Both Cargo invocations ran outside Invoke-ArcTest.ps1 with zero Arc GPU mutex hold.
  • rustc --version reported rustc 1.100.0 (0ef1bc386 2026-11-09). dxc.exe --version reported DXC 1.9.2609.5 (01b62ad47). Cargo used the test profile with debug info and incremental compilation disabled.

Commands and results

  • cargo test --workspace --no-run exited 0 and built the workspace test executables.
  • cargo test -p xcl --test disasm_e2e hex_flag_dumps_the_fssm_data_after_the_code -- --exact --nocapture exited 0. The log reported 1 passed, 0 failed, 0 ignored, with 1 test filtered out and 0 SKIPPED lines.

Observed behavior

The test built a synthetic compute shader container and called xcl disasm twice. Both invocations succeeded. The default output included the +0x140 header-limit notice and omitted the trailing-data section. With --hex, the notice was absent and the trailing-data section showed aa bb cc dd. The CLI path reads and decodes the container on the CPU without creating a D3D12 device or dispatching a shader.

Not tested

The full GPU workspace suite and game smoke runs were omitted. Test execution was limited to the one added CLI test.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr896-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/896#issuecomment-7154193635) ### Empirical test report (4e1cda6e) PR #896 was checked at commit `4e1cda6e1f4828e501c259a80bd9e6cc16bf1a35`. The diff against `origin/main` adds one integration test and its synthetic fixture in `crates/xcl/tests/disasm_e2e.rs`. **Hardware / environment** - Windows x64, build `10.0.26200`, on an `AuthenticAMD` x64 CPU (family 23, model 113, stepping 0). The focused test used `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1`. Both Cargo invocations ran outside `Invoke-ArcTest.ps1` with zero Arc GPU mutex hold. - `rustc --version` reported `rustc 1.100.0 (0ef1bc386 2026-11-09)`. `dxc.exe --version` reported DXC `1.9.2609.5` (`01b62ad47`). Cargo used the test profile with debug info and incremental compilation disabled. **Commands and results** - `cargo test --workspace --no-run` exited 0 and built the workspace test executables. - `cargo test -p xcl --test disasm_e2e hex_flag_dumps_the_fssm_data_after_the_code -- --exact --nocapture` exited 0. The log reported **1 passed, 0 failed, 0 ignored**, with 1 test filtered out and 0 `SKIPPED` lines. **Observed behavior** The test built a synthetic compute shader container and called `xcl disasm` twice. Both invocations succeeded. The default output included the `+0x140` header-limit notice and omitted the trailing-data section. With `--hex`, the notice was absent and the trailing-data section showed `aa bb cc dd`. The CLI path reads and decodes the container on the CPU without creating a D3D12 device or dispatching a shader. **Not tested** The full GPU workspace suite and game smoke runs were omitted. Test execution was limited to the one added CLI test. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr896-focused.log` and published.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 09:42 UTC · original

Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

**@⁠DavidM1911** on GitHub · 2026-11-25 09:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/896#issuecomment-7158684652) Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
This pull request has changes conflicting with the target branch.
  • crates/xcl/tests/disasm_e2e.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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