Repository navigation
Shaders: validate and pair per-lane sweep results - #1856
moombathepilot wants to merge 1 commit into
Conversation
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
9b0a4c3 to
a4230a2
Compare
a4230a2 to
879dce5
Compare
|
Tested Independently reran the pinned standalone CPU executable at Both native processes exited 0 with empty stderr. Total was 2 passed, 0 failed, 0 ignored, 0 skipped. The synthetic fixture asserted the counters after each of eight inputs and ended with 8 tried, 3 translated, and 2 paired. The paired totals were 46 B per-lane and 24 B per-instruction. The asserted refusal buckets were Not tested The CLI sweep, real translation and validation, timeout or panic behavior, concurrent workers, GPU, retail titles, and the Cargo workspace suite. AI use T3 Code through Codex ( |
|
NVIDIA and AMD full-suite run of head Tested
Not tested
AI use
|
|
No open or merged PR makes this change. Main's AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
xcl 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 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. The regression test covers 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.879dce5d3c35c900a51a71dd937532be8ca7e98a, rebased onto main10d272970f25b02b72ebe3c883d02d74d4d4763b:cargo build --release -p xcl --bin xclpassed;git diff origin/main...HEAD --checkpassed.per_lane_sweep_totals_include_only_matched_outputs: 1 passed, 0 failed.cargo test -p xcl --lib shaders::tests -- --test-threads=4: 21 passed, 0 failed, 0 ignored. One test printed SKIPPED internally because disabling the driver cache requires Windows Developer Mode here; it still returned ok.cargo test --workspace -- --test-threads=4stopped in the xcl library: 2015 passed, 3 failed, 28 ignored. Two failing tests (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1andgpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk) also failed individually on current main10d27297. The third (hle::d3d12x::alloc_pool::tests::submit_marking_calls_out_unlocked_and_revalidates_the_queue_marker) passed individually on both main and this PR head; its suite failure depends on parallel scheduling. This does not establish a clean workspace suite.e429936cand previous PR heada4230a2b:xcl shaders <retail shader pack> --direct --lanes --sample 256 --seed 1 --validate --split 0 --windows 4 --threads 2 --top 0, withXCL_NETWORK=0on both. Each validated 215/256 sampled records (41 above 16,384 B skipped). Per-lane translation succeeded for 4/18 compute records; all 4 matched per-instruction DXIL on the PR head, totaling 144,516 B versus 139,532 B. Direct DXIL translated 122/215 on both, with no validator failures, panics, or timeouts. This sweep predates the latest rebase and contains no unmatched per-lane success; the regression test covers that case.Regression run
Both used
scripts/smoke.ps1for 60 seconds,XCL_NETWORK=0,XCL_ACTIVITY=1,XCL_PREPARE=0, and no scripted input. The main block is from the earlier baseline; the PR block was rerun on the pushed head.Main:
PR head:
Not tested
World loading, a complete retail sweep on the latest head, driver compile time, other adapters, or optional
XCL_SAMPLE_*tests. The smoke runs cover startup; this offline measurement change does not establish a runtime speedup.AI use
OpenAI Codex assisted with the patch and regression test, resolved rebase conflicts, ran the listed builds, tests, smoke runs and sweep, and updated this description from their output.