README: document xcl shaders --direct --seed and --validate #2689

Open
romeawayfromhome-rgb wants to merge 3 commits from upstream-pr/2699 into main
romeawayfromhome-rgb commented 2026-11-26 07:02:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-26T07:02:34Z.


Stacked on #2657; only the top commit belongs here. The README examples added by the stacked direct-sweep PRs cover --sample, --hash, --dump, and --compare, but not --seed or --validate, although the built-in help lists both. This adds one example for a reproducible seeded sample with DXIL validation.

What is in it

  • README.md: one example line for xcl shaders --direct --seed 7 --validate, after the stacked --hash/--dump line.

Tested

  • Docs-only change; no code changed. Verified against crates/xcl/src/main.rs HELP and crates/xcl/src/shaders.rs at b49be18368: --seed defaults to 1 and selects the deterministic sample; --validate defaults to false and runs the DXIL validator on translated output.
  • Confirmed the stacked PRs #2450 and #2657 do not add --seed or --validate.

Regression run

  • Not applicable: README only, no runtime change.

Not tested

  • No Windows build, GPU test suite, smoke run, or command execution: this was prepared on Linux and XCL is Windows-only.

AI use

  • Muse Spark via Muse prepared the README line and this description. Alexander Lerbakken (romeawayfromhome-rgb) directed the continuous contribution loop.
<!-- greyfinch-sync:ivall/xcl:issue:5505540715 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2699). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-26T07:02:34Z. --- Stacked on #2657; only the top commit belongs here. The README examples added by the stacked direct-sweep PRs cover `--sample`, `--hash`, `--dump`, and `--compare`, but not `--seed` or `--validate`, although the built-in help lists both. This adds one example for a reproducible seeded sample with DXIL validation. **What is in it** - README.md: one example line for `xcl shaders --direct --seed 7 --validate`, after the stacked `--hash`/`--dump` line. **Tested** - Docs-only change; no code changed. Verified against `crates/xcl/src/main.rs` HELP and `crates/xcl/src/shaders.rs` at b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7: `--seed` defaults to 1 and selects the deterministic sample; `--validate` defaults to false and runs the DXIL validator on translated output. - Confirmed the stacked PRs #2450 and #2657 do not add `--seed` or `--validate`. **Regression run** - Not applicable: README only, no runtime change. **Not tested** - No Windows build, GPU test suite, smoke run, or command execution: this was prepared on Linux and XCL is Windows-only. **AI use** - Muse Spark via Muse prepared the README line and this description. Alexander Lerbakken (romeawayfromhome-rgb) directed the continuous contribution loop.
luckyteagirl commented 2026-11-26 07:13:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T07:13:29Z.

Review: COMMENTED


Could the new example add --threads 1 to make the selected programs reproducible? The seed fixes the record order, but workers claim records in parallel and share a per-program limit. With a limit of two, let the first seeded record contain programs A and B and the next record contain C. One schedule admits A and B before the second worker runs. Another admits A, then C, leaving B out. Both use the same seed.

Either add --threads 1 or say that the seed fixes record order. This is an exact-head source review of acfd8d5b39e07364e4d21694119789bf0ed13bdc. No shader-pack run. AI-assisted review with Codex.

<!-- greyfinch-sync:ivall/xcl:review:6069902906 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2699#pullrequestreview-6069902906). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T07:13:29Z. **Review:** COMMENTED --- Could the new example add `--threads 1` to make the selected programs reproducible? The seed fixes the record order, but workers claim records in parallel and share a per-program limit. With a limit of two, let the first seeded record contain programs A and B and the next record contain C. One schedule admits A and B before the second worker runs. Another admits A, then C, leaving B out. Both use the same seed. Either add `--threads 1` or say that the seed fixes record order. This is an exact-head source review of `acfd8d5b39e07364e4d21694119789bf0ed13bdc`. No shader-pack run. AI-assisted review with Codex.
Foniass commented 2026-12-01 08:44:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:44:16Z.


Triage (#1607) – head acfd8d5

Stacked on #2657, which is stacked on #2450: this PR contains their commits 0c0bdca and a4ad250, and only the top commit acfd8d5 (the --seed / --validate line) belongs here. That is a stack, not a duplicate. The other README PRs with similar titles document other flags.
--seed and --validate are parsed in shaders.rs on main and listed in main.rs HELP next to --direct. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305712063 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2699#issuecomment-7305712063). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:44:16Z. --- **Triage (#1607)** – head acfd8d5 Stacked on #2657, which is stacked on #2450: this PR contains their commits 0c0bdca and a4ad250, and only the top commit acfd8d5 (the `--seed` / `--validate` line) belongs here. That is a stack, not a duplicate. The other README PRs with similar titles document other flags. `--seed` and `--validate` are parsed in `shaders.rs` on main and listed in `main.rs` HELP next to `--direct`. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2699:upstream-pr/2699'
git switch 'upstream-pr/2699'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2699'
git switch 'upstream-pr/2699'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2699'
git switch 'upstream-pr/2699'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2699'
git switch 'main'
git merge --squash 'upstream-pr/2699'
git switch 'main'
git merge --ff-only 'upstream-pr/2699'
git switch 'main'
git merge 'upstream-pr/2699'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2689
No description provided.