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. |
Prime1997
left a comment
There was a problem hiding this comment.
Good within the targeted test scope; retain for integration. Rejects invalid whole or split DXIL containers before persisting a rerouted translation cache result.
Reviewed PR head 1e4a2c787a074b1aa541465bc709801d45babb18. Tested an isolated, uncommitted merge-tree integration with latest main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, tree 661f687b98fb63adc515fe16b7cf71ae4a956b76; this is not a clean PR-head run. Integration source overlay SHA-256: 5fe54447ce09bdcf7648555bd5ebea51c17438b284d15cbeb2cc485b67c4fd08.
Measured: 1 passed, 0 failed, 0 ignored, 0 skipped. Exact selected filters, each run in a fresh process:
gpu::recomp::pso::shader_cache_tests::rerouted_cache_validates_fresh_dxil_and_chain_pieces
Build: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Run each: <test-exe> <exact-filter> --exact --test-threads=1 --nocapture. Private target/executable paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB, Rust 1.100.0 MSVC debug; private temporary/cache paths, two low-priority build jobs, 90-second per-test bound.
Scope: Synthetic container and private-file fixture checks invalid whole/piece refusal and valid split persistence. It does not validate DXIL program semantics with a compiler or device. No full suite, retail run, sustained memory pressure or performance benefit is established. Passing these fixtures is not merge certification.
AI use: Codex (GPT-6) inspected the changes and fixtures, ran the checks and verified raw receipts. Optional temporary Discord for coordinating contributor work, testing and comparing results.
|
Two contributors checked independently and found that this PR makes the same change as #2540 (for #2463): #1607, group D121. They suggest keeping #2540. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
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