README: document xcl shaders --json #2382

Open
github-bot wants to merge 2 commits from github-bot/gh-2382 into main AGit
Owner

@⁠romeawayfromhome-rgb on GitHub · 2026-11-25 17:33 UTC · original
romeawayfromhome-rgb:docs/shaders-json-readme → main · +1 −0 · 1 files · 2 commits · draft

The xcl shaders command 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 --top example line so the README matches crates/xcl/src/shaders.rs and the built-in HELP in crates/xcl/src/main.rs.

What is in it

  • README.md: add [--json] to the xcl shaders D:\data\shaders.rpf --top 50 line and note in its trailing comment that --json prints 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 --json argument check and the print routine, which prints the statistics as JSON), the built-in HELP in crates/xcl/src/main.rs, and README.md at base commit 68a284a596.

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.

**@⁠romeawayfromhome-rgb** on GitHub · 2026-11-25 17:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/2382) `romeawayfromhome-rgb:docs/shaders-json-readme` → `main` · +1 −0 · 1 files · 2 commits · draft The `xcl shaders` command 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 `--top` example line so the README matches `crates/xcl/src/shaders.rs` and the built-in HELP in `crates/xcl/src/main.rs`. **What is in it** - `README.md`: add `[--json]` to the `xcl shaders D:\data\shaders.rpf --top 50` line and note in its trailing comment that `--json` prints 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 `--json` argument check and the print routine, which prints the statistics as JSON), the built-in HELP in `crates/xcl/src/main.rs`, and `README.md` at base commit 68a284a596bd558b6bd9db6eedda6d6aa178c360. **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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:29:38 +00:00
Author
Owner

@⁠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):
gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier
  assertion failed: group barriers in the program (lower_dxil.rs:1155)

The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-25 19:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/2382#issuecomment-7171958058) 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): ``` gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier assertion failed: group barriers in the program (lower_dxil.rs:1155) ``` The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge. — Devin
Author
Owner

@⁠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

**@⁠romeawayfromhome-rgb** on GitHub · 2026-11-25 21:45 UTC · [original](https://github.com/xcl-dev/xcl/pull/2382#issuecomment-7175501366) 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
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 08:48 UTC · original · reviewed

At exact head d9fe609 (base 68a284a, current main b49be18), the new example xcl shaders … --top 50 [--json] suggests --json emits the same top-50 statistics. In shaders.rs, the JSON branch builds mnemonics from all of ranked.iter() and returns before the text branch's .take(top); --top 50 --json therefore 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 --top limits 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.

**@⁠luckyteagirl** on GitHub · 2026-11-26 08:48 UTC · [original](https://github.com/xcl-dev/xcl/pull/2382#pullrequestreview-6070951936) · **reviewed** At exact head `d9fe609` (base `68a284a`, current main `b49be18`), the new example `xcl shaders … --top 50 [--json]` suggests `--json` emits the same top-50 statistics. In `shaders.rs`, the JSON branch builds `mnemonics` from all of `ranked.iter()` and returns before the text branch's `.take(top)`; `--top 50 --json` therefore 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 `--top` limits 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.
Author
Owner

@⁠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.

**@⁠romeawayfromhome-rgb** on GitHub · 2026-11-26 11:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/2382#issuecomment-7190289396) 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.
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/2382/head:github-bot/gh-2382'
git switch 'github-bot/gh-2382'

Merge

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