Shaders: report direct shader dump failures #1755
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!1755
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@NemesisDawn on GitHub · 2026-11-24 20:16 UTC · original
NemesisDawn:fix/direct-shader-dump-errors→main· +76 −7 · 2 files · 1 commits · openRequire 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
@Anon64 on GitHub · 2026-11-24 20:28 UTC · original
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.
@futurepro62 on GitHub · 2026-11-24 21:19 UTC · original · edited 2026-11-24 21:41 UTC
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
@DavidM1911 on GitHub · 2026-11-24 23:04 UTC · original
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!
@JJAutoCompare on GitHub · 2026-11-25 04:09 UTC · original
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.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.