Tests: xcl disasm --hex dumps the FSSM data after the code #890
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/896"
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 Koro4e on 2026-11-24T07:53:52Z.
xcl disasm --hexfor 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
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--hexrun 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 ignoredcargo 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.stable-x86_64-pc-windows-msvc)Regression run
crates/xcl/src(the test calls the shippedxcl disasmthrough a fresh debug build)Not tested
AI use
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T09:34:20Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
4e1cda6onto main09940bb, 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.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:50:45Z.
Empirical test report (
4e1cda6e)PR #896 was checked at commit
4e1cda6e1f4828e501c259a80bd9e6cc16bf1a35. The diff againstorigin/mainadds one integration test and its synthetic fixture incrates/xcl/tests/disasm_e2e.rs.Hardware / environment
10.0.26200, on anAuthenticAMDx64 CPU (family 23, model 113, stepping 0). The focused test usedXCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Both Cargo invocations ran outsideInvoke-ArcTest.ps1with zero Arc GPU mutex hold.rustc --versionreportedrustc 1.100.0 (0ef1bc386 2026-11-09).dxc.exe --versionreported DXC1.9.2609.5(01b62ad47). Cargo used the test profile with debug info and incremental compilation disabled.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test executables.cargo test -p xcl --test disasm_e2e hex_flag_dumps_the_fssm_data_after_the_code -- --exact --nocaptureexited 0. The log reported 1 passed, 0 failed, 0 ignored, with 1 test filtered out and 0SKIPPEDlines.Observed behavior
The test built a synthetic compute shader container and called
xcl disasmtwice. Both invocations succeeded. The default output included the+0x140header-limit notice and omitted the trailing-data section. With--hex, the notice was absent and the trailing-data section showedaa 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.logand published.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:42:05Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:19: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 Foniass on 2026-12-01T04:26:20Z.
Triage (#1607) – head
4e1cda6The lines it shares with #941, #969 and #1661 are the synthetic DXBC/FSSM container builder, not the same test. Main's
disasm_xbox_container_unpacks_fssm_and_supports_hex_and_fssm_exportpasses--hexbut never checks the "data after the code" dump. This PR checks both that dump and the header note shown without--hex. It conflicts with main's rewrittendisasm_e2e.rs, which now has its ownle32/fssm/xbox_shaderhelpers that could replaceconsole_cs.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.