xcl disasm: a failed --fssm write exits non-zero #1711
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1711
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1711"
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?
@b3IKK on GitHub · 2026-11-24 19:32 UTC · original
b3IKK:disasm/fssm-write-failure-exit→main· +69 −7 · 1 files · 1 commits · openxcl disasm <console shader> --fssm outprintedxcl disasm: <name>: <error>when the FSSM could not be saved and then returned 0, so a script that extracts FSSMs saw success while the file was missing. A--fssmwith no file name after it was ignored the same way.This saves through
save_fssm(), carries the failure out ofprint_xbox(), returns 2 fromrun()when a file the user asked for could not be written, and makes--fssmwithout a value an error before anything is read. The disassembly itself is still printed in both cases.What is in it
crates/xcl/src/disasm.rs: addsave_fssm()andprint_xbox(...) -> bool;run()returns 2 on a failed--fssmwrite or a nameless--fssm; add testa_failed_fssm_write_exits_2(a synthetic XDAT/XBCH container from thexboxtest helpers, writing onto a directory) — fails onmainwithleft: 0, right: 2.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 960 passed, 0 failed, 43 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses,no heap windows, andcannot disable the driver cache (Windows Developer Mode is required))cargo test -p xcl --lib disasm: 1 passed, 0 failedRegression run
main (
1d027e5, clean tree, no local changes):PR (
f59458d, clean tree, no local changes):(Two runs of this head — 1428 and 1394 frames — both with the translated-shader and pipeline caches cold right after the test suite; the title spends the minute rebuilding them. It is the same binary as the main run, whose block is the one above.)
Not tested
AI use
xcl disasm, wrote the fix and the end-to-end test (and confirmed it fails without the fix), rebased onto1d027e5, ran the test suite andscripts/smoke.ps1regression runs with #677's title hashing, and drafted this PR description.@b3IKK on GitHub · 2026-11-24 21:58 UTC · original
Rebased onto
1d027e5and re-ran: 960 passed, 0 failed, 43 ignored, and the blocks above use the current scripts/smoke.ps1 (#677's hashed itle: line). Note the PR block's frame count: two runs of this head both came in around 1400 frames with the caches cold after the suite (the title rebuilds its translated shaders in the minute) — same binary, no crashes, no device removals.@DavidM1911 on GitHub · 2026-11-24 22:18 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 04:04 UTC · original
XCL PR #1711 verification
Clean PR head
f59458df682ae596c062aded56497c989e38794aon STOR-WINLAB. Windows 11 Enterprise Evaluation x64 (10.0.26200.9974), AuthenticAMD family 23 model 113, Intel Arc A770 (16 GB) with driver32.0.101.9175, DXC1.9.2609.5, and rustc1.100.0 (0ef1bc386 2026-11-09)onx86_64-pc-windows-msvc. Unoptimized dev and test profiles with debug info and incremental compilation disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded outside the Arc lock. The latter produced 19 test binaries.cargo test -p xcl --lib disasm::tests::a_failed_fssm_write_exits_2 -- --exactwithXCL_ADAPTER=NONE_CPU_ONLYoutside the lock gave 1 passed, 0 failed, 0 ignored. With a synthetic Xbox shader, a directory destination returned 2, a writable destination returned 0 and saved bytes starting withFSSM, and a missing filename returned 2.xcl.exe disasm <nonexistent-input.xbs> --fssmreturned process exit code 2 and printedxcl disasm: --fssm needs a file name.cargo test --workspace --no-fail-fast -- --test-threads=4ran once insideInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Cargo exited 101. Across 20 result lines (19 test binaries and one doctest target), libtest reported 941 passed, 19 failed, 43 ignored. The FSSM test and the existing disassembly byte-range CLI test passed.Workspace failures and skips
CreateComputePipelineStateerror0x80070057. Four had assertion mismatches involving FMA contraction, implicit LOD sampling, f16 high-half preservation, or wave64 pixel reductions.RSSetDepthBiasXcheck. The top-right pixel was blue instead of green.pr1711-suite.logcontained 25 lines starting withSKIPPED. These represent 17 missing-wave64 cases, three refused wave32 per-lane cases, two debug-layer cases, and one each for tiling tier, driver-cache control, and heap windows. These skips are excluded from coverage even when libtest reports success. Retail sample paths also skipped withXCL_SAMPLE_*unset.Not tested
No matched
mainrun, retail-title smoke run, or other GPU. The suite failures have no matched baseline for comparison.AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1711-suite.logand published.@DavidM1911 on GitHub · 2026-11-26 06:17 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.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.Merge
Merge the changes and update on Forgejo.