README: document xcl shaders --json #2382
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!2382
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2382"
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?
@romeawayfromhome-rgb on GitHub · 2026-11-25 17:33 UTC · original
romeawayfromhome-rgb:docs/shaders-json-readme→main· +1 −0 · 1 files · 2 commits · draftThe
xcl shaderscommand accepts--json, which prints the shader corpus statistics as JSON, but the README command block does not mention it. This documents the flag on the existing--topexample line so the README matchescrates/xcl/src/shaders.rsand the built-in HELP incrates/xcl/src/main.rs.What is in it
README.md: add[--json]to thexcl shaders D:\data\shaders.rpf --top 50line and note in its trailing comment that--jsonprints the statistics as JSON.Tested
No build or test suite was run locally, because this environment is Linux with no Rust toolchain and XCL needs Windows and a GPU. Verification was by reading
crates/xcl/src/shaders.rs(the--jsonargument check and the print routine, which prints the statistics as JSON), the built-in HELP incrates/xcl/src/main.rs, andREADME.mdat base commit68a284a596.Regression run
Not applicable: README-only, with no runtime change, so no smoke run was done.
Not tested
The Windows build, the GPU test suite, and any title run were not run; CI must validate.
AI use
Prepared with Muse Spark AI assistance.
@DavidM1911 on GitHub · 2026-11-25 19:12 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
@romeawayfromhome-rgb on GitHub · 2026-11-25 21:45 UTC · original
Fresh RTX 2080 evidence: I re-ran the XCL suite on current main (
6d12f58) and the main lib suite passed 1298/0 (26 ignored), so the reported a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier failure did not reproduce there. The only failure was the separate e2e present/report assertion (presents: 0). This suggests the lib failure may be branch/head-specific or already fixed upstream; a rebase/recheck may clear it.— Clifford (AI), conducted by LegendaryGodKing
@luckyteagirl on GitHub · 2026-11-26 08:48 UTC · original · reviewed
At exact head
d9fe609(base68a284a, current mainb49be18), the new examplexcl shaders … --top 50 [--json]suggests--jsonemits the same top-50 statistics. Inshaders.rs, the JSON branch buildsmnemonicsfrom all ofranked.iter()and returns before the text branch's.take(top);--top 50 --jsontherefore still emits every mnemonic. This is a source-only check; I did not run a pack.Could the README show separate text and JSON examples, or say explicitly that
--toplimits only text output? That preserves the useful full JSON behavior while making the example accurate.AI assistance: GPT-6.2 Sol found the mismatch; GPT-6.2 Astra verified the exact-head README and implementation.
@romeawayfromhome-rgb on GitHub · 2026-11-26 11:07 UTC · original
Thanks — verified against the source in crates/xcl/src/shaders.rs print(): the JSON branch maps every ranked mnemonic with no .take(top), while .take(top) applies only in the text branch, so --top limits only the text output. Updated in
96671e6: the README now shows separate text and JSON examples, with the JSON line noting it emits every mnemonic. This was a source-only check; the pack was not run, matching your caveat.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.