Recompiler: the rerouted shader cache checks fresh DXIL and chain pieces #2535
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!2535
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2535"
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?
@xpatfussy69x on GitHub · 2026-11-25 21:54 UTC · original
xpatfussy69x:recompiler/rerouted-cache-validation→main· +46 −1 · 1 files · 1 commits · openPart of #2463 (item 3; items 1 and 2 are not in this change).
cached_inrefuses freshly translated DXIL that is not a container, butcached_rerouted, the path of compute programs too big for the HLSL path (pso::enormous), handed it on and wrote it to disk.store_inchecked only the main DXIL, so a split program with a bad dispatch-chain piece was written althoughload_inalways refuses it. Both now usevalid_containers, which checks the DXIL and every piece, asload_indoes.Item 3's other half (
direct_output()withoutcompact_nest_tag()) is already fixed onmain:direct_output_identitytakes the nest tag.What is in it
crates/xcl/src/gpu/recomp/pso.rs:translated::valid_containers;store_inandcached_rerouted's fresh output use it (the latter returns the same errorcached_ingives)crates/xcl/src/gpu/recomp/pso.rs:rerouted_cache_validates_fresh_dxil_and_chain_pieces: invalid fresh DXIL and a split program with one bad piece are both refused bycached_reroutedand nothing reaches the disk;store_inskips the bad split program and writes a valid one. Fails without the fix (invalid fresh DXIL comes backOk)Tested
cargo test --workspace -- --test-threads=4: 1424 passed, 0 failed, 46 ignoredV_MUL_F16/V_PK_MUL_F16/V_CVT_F16_F32(onmaintoo; #2182 removes them)cargo test -p xcl --lib gpu::recomp::pso: 25 passed, 0 failed, 1 ignoredRegression run
main:
PR:
Not tested
6d12f58, this branch's base ise1d84b7(both commits ofmain)AI use
@emirduran707 on GitHub · 2026-11-25 22:10 UTC · original
Independent AMD RDNA4 (native wave64) test report on exact head
1e4a2c787a074b1aa541465bc709801d45babb18(clean detached checkout, no local changes).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1422 passed, 2 failed, 46 ignored; 8 SKIPPED (6 inlower_dxil::tests::{f16,f32}_programs_on_the_gpurefused by per-lane form;heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.gpu::recomp::pso::shader_cache_tests::rerouted_cache_validates_fresh_dxil_and_chain_pieces.gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1seed 722 andfuzz_validate_and_gpu_3seed 1599) are pre-existing on unmodifiedmainon this GPU.Regression run (60 s retail-title smoke,
XCL_NETWORK=0, release)(Matched
main68a284abaseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 22:17 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!
@SlopTart on GitHub · 2026-11-25 23:07 UTC · original
Tested: current PR head merged onto current
origin/main(clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo targetx86_64-pc-windows-gnurun under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).gpu_suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.Targeted run of
rerouted_cache_validates_fresh_dxil_and_chain_pieces: passed.Not tested: retail titles (no title data on this lane, counts only).
AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
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.