Repository navigation
Recompiler: the rerouted shader cache checks fresh DXIL and chain pieces - #2535
xpatfussy69x wants to merge 1 commit into
Conversation
cached_in refuses freshly translated DXIL that is not a container, but cached_rerouted (the path of compute programs too big for the HLSL path, xcl-dev#2463 item 3) handed it on and wrote it. store_in checked only the main DXIL, so a split program with a bad piece was written although load_in always refuses it. valid_containers checks the DXIL and every dispatch-chain piece, as load_in does; store_in and cached_rerouted's fresh output use it. The issue's other half (direct_output without compact_nest_tag) is already fixed on main. Test: invalid fresh DXIL and a split program with one bad piece are both refused by cached_rerouted and nothing reaches the disk; store_in skips the bad split program and writes a valid one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent AMD RDNA4 (native wave64) test report on exact head Tested
Regression run (60 s retail-title smoke, (Matched Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Tested: current PR head merged onto current
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. |
Part 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; Recompiler: the per-lane form takes f16 converts and products from #1426 #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