Shaders: report direct shader dump failures #1745
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1755"
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?
Imported from ivall/xcl. Originally posted by NemesisDawn on 2026-11-24T20:16:54Z.
Require a usable output directory for direct shader dumps and return a failure when a file cannot be written. Keep the sweep summary visible.
What is in it
crates/xcl/src/shaders.rshandles missing destinations and write errors.crates/xcl/tests/shaders_e2e.rsadds both regression cases.Tested
7c9bab2, both regression cases passed on Windows using a standalone CLI fixture compiled withrustc1.100.0. The fixture uses synthetic shader input and exercises a real file-write failure.Regression run
mainand this PR’s commit.Not tested
AI use
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-24T20:28:47Z.
Regression run for this PR: head
7c9bab2, based onmainb9b6ea6. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release,XCL_NETWORK=0, A pressed every 4 s from 20 s,scripts/smoke.ps1on a retail title for 60 s, back to back with themainrun.main
b9b6ea6:this PR:
No device removals or crashes; 103 % of main's frames, 103 % of its peak commit.
This is the second pair. In the first pair (also back to back) peak commit was 23.4 GB on
mainand 57.4 GB on this PR, both with 0 crashes; the second pair shows that spread comes from the preload, not from this PR.Peak commit on this machine is mostly the pipeline preload's DXC compiles (#1035) and varies a lot from run to run, so it says little about this PR.
Not tested: the whole suite; the
xcl shadersdirect-dump path this PR changes (the title run does not use it).Written with Claude Code (Claude Opus 5.5) from runs on this machine.
upstream-sync referenced this pull request2026-11-24 21:09:48 +00:00
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T21:19:37Z.
Full-suite run, since this PR has no test report yet. Tested exact head
7c9bab2(on its baseb9b6ea6).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 889 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.direct_dump_requires_a_directory,direct_dump_reports_an_output_write_failure.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 891 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not setXCL_REQUIRE_GPU, so there both just print SKIPPED.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T23:04:39Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:09:28Z.
XCL PR #1755 — Direct shader dump failure reporting
Verified
7c9bab2507780ff9c13267eab71351703b7a3fd3on a clean detached checkout on STOR-WINLAB. Windows 11 x64 build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 (driver 32.0.101.9175), DXC 1.9.2609.5, rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Dev and test profiles were unoptimized with debug info and incremental compilation disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded outside the Arc mutex. The latter built 19 test executables.cargo test -p xcl --test shaders_e2e direct_dump_withXCL_ADAPTER=NONE_CPU_ONLYoutside the mutex: 2 passed, 0 failed, 0 ignored, 0 explicit skips. The tests verified exit code 2 and stderr for a missing--dumpargument, a following--jsonflag, and an existing file used as the dump directory. They also checked that the existing file was preserved. A synthetic shader produced a byte-for-byte guest dump. Replacing that output file with a directory made the rerun report the write failure and exit 2.cargo test --workspace --no-fail-fast -- --test-threads=4ran once underInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Cargo exited 101. All 20 result lines inpr1755-suite.log(19 test executables and 1 doctest suite) sum to 873 passed, 18 failed, and 42 ignored. Both direct dump tests passed in this run.Workspace failures and skips
17 library GPU tests failed with compute pipeline creation errors (0x80070057) or assertion mismatches. The test-title integration test failed at D3D12.X dynamic depth bias (
RSSetDepthBiasX), where the top-right pixel was blue instead of green. The log has 7 lines starting withSKIPPED: two for missing wave64, two for missing debug-layer support, and one each for tiled resources tier < 2, driver cache control, and missing heap windows. These skips provide no coverage.Not tested
Matched
mainbaseline, retail-title smoke runs, AMD or NVIDIA adapters, and sample-dependent paths (XCL_SAMPLE_*unset).AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1755-suite.logand published.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:17:44Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:40:04Z.
Triage (#1607) – head
7c9bab2No other open PR reports
--direct --dumpfailures. Part of it is now on main: since #2266 (9a7e0ed),--dumpwithout a value or followed by another--flag is rejected bycli::Parser::value("--dump needs a value"), so the newexpected a directory after --dumpbranch and the first half ofdirect_dump_requires_a_directoryno longer apply.Still missing on main: the
create_dir_allfailure and the per-file write failures indirect_sweep(bothlet _ =there). The PR conflicts with main, wheredirect_sweepnow readsopts.dump; a rebase should keep only that part and adjust the test's expected message.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.