Shaders: validate and pair per-lane sweep results #1856
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!1856
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1856"
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?
@moombathepilot on GitHub · 2026-11-24 21:57 UTC · original
moombathepilot:shaders/per-lane-sweep-validation→main· +61 −21 · 2 files · 1 commits · draftxcl shaders --direct --lanessupports the compiler measurements in #1269. When only per-lane translation succeeds, its bytes currently enter the comparison with zero bytes on the other side. Release sweeps also leave per-lane DXIL unchecked when--validateis passed. This follows up on the two sweep findings noted in #1745. Part of #1269.What is in it
shaders.rs: count successful per-lane translations separately from paired DXIL sizes. Validate per-lane output under the existing sweep timeout when requested. Test the totals with a matched pair, a missing counterpart, and a validator refusal.main.rs: document the comparison and validation behavior in CLI help.Tested
32.0.32029.2010, Ryzen 7 5700X3D, Windows build26300.9974, Rust1.100.0MSVC, DXC/DXIL1.9.2602.17.scripts/test.ps1 --test-threads=4: 960 passed, 0 failed, 43 ignored. The passing total includes 8 explicit GPU skips.xcl shaders <retail shader pack> --direct --lanes --sample 256 --seed 1 --validate --split 0 --windows 4 --threads 2 --top 0on both commits. The candidate reported one matched pair of 18 compute programs, 6,532 B per-lane versus 6,340 B per-instruction. All 18 per-instruction translations succeeded in this sample, so the missing-counterpart case is covered by the regression test.Regression run
Main:
Candidate:
Not tested
World loading, a complete retail sweep, driver compile time, other adapters, or optional
XCL_SAMPLE_*tests. The retail smoke runs cover startup. This patch changes the offline comparison and validation, so these runs do not establish a runtime speedup.AI use
Codex (GPT-6.2-sol) wrote the patch and regression test, ran the local checks, and drafted this description from their output.
@DavidM1911 on GitHub · 2026-11-25 01:28 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.