Recompiler: key rerouted DXIL by compact nesting policy #2257
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!2257
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2257/head"
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?
@ettehn on GitHub · 2026-11-25 11:39 UTC · original
ettehn:codex/rerouted-compact-nest-cache→main· +67 −12 · 1 files · 1 commits · merged 2026-11-25 18:46 UTCWhen XCL automatically reroutes an enormous HLSL compute shader to Direct DXIL (#2120), its translated-cache key omits the compact nesting setting (#2174). A warm cache can return flat-dispatch DXIL after the setting changes to grouped dispatch. Part of #2088.
What is in it
Tested
f5494de4was tested with one local compute record above the reroute threshold. Main reused the flat entry with nesting set to four. The patch wrote three separate entries for flat/split, nested/split, and nested/unsplit. A new process reused each entry with no additional writes. On the earlier baseafc5ee86, the new process-level synthetic regression failed on unpatched main and passed after the fix, with 21 focused cache tests passing.cargo test --offline --locked --release -p xcl --lib shader_cache_tests -- --test-threads=1: 21 passed, 0 failed, 0 ignored.Earlier validation on
75dff2c:gpu::recomp::pso::shader_cache_testsgroup passed on75dff2c: 21 passed, 0 failed, 0 ignored, using WARP and a fresh writableXCL_DXIL_CACHE.426a5a7and clean75dff2cthroughconsole_to_dxil_in, with one local compute record above the HLSL reroute threshold,XCL_DIRECT_DXILunset andXCL_DIRECT_COMPACT=1. The baseline group-of-four request reused warm flat DXIL (1,291,352 bytes); a cold grouped request generated 1,310,308 bytes. The patch generated both outputs independently and hit the matching entry on each repeat. All returned DXIL passed validation. Details in #2088.cargo test --workspace --locked -j 4 --no-fail-fast -- --test-threads=4 --nocapture. The report lists 25 and 27 runtime skips, respectively, and all 21 focused cache tests ran on each machine without skips.Regression run
Same retail title, 20 seconds each, separate initially empty XCL data and DXIL caches, networking off, one DXC thread, no scripted input. Scope: startup only.
Main:
PR head:
Not tested
AI use
OpenAI Codex (GPT-6.2 Sol) assisted with the change, regression tests, and Windows verification.
@itsSio on GitHub · 2026-11-25 11:52 UTC · original
Tested
Independent Windows hardware runs on clean head
75dff2c9485617dd992fc2915d674f3b5b898b2f. Both: Windows 11 Pro build 26200, NVIDIA 610.88, debug MSVC, explicit NVIDIA adapter and fresh writable XCL DXIL cache.On both machines
cargo build --workspace --locked -j 4passed;cargo test -p xcl --lib --locked -j 4 gpu::recomp::pso::shader_cache_tests -- --test-threads=1 --nocapturewas 21 passed, 0 failed, 0 ignored, 0 runtime skips, includingrerouted_disk_entries_follow_compact_nesting_policy.cargo test --workspace --locked -j 4 --no-fail-fast -- --test-threads=4 --nocapturereported 1244 passed, 0 failed, 46 ignored on each. RTX 5080: 25 runtime skips (20 no native wave64, three unsupported per-lane cases, no heap windows, cache-disable unavailable). RTX 2080 SUPER: 27 runtime skips (same plus two missing D3D12 debug-layer cases).Not tested: Retail smoke, the original large record, or driver compile time for the rerouted shader. The focused cache test verifies distinct reroute entries and ordinary HLSL reuse; it is not a hardware timing test.
AI use
Ran via Samaritan:
@oni-swr on GitHub · 2026-11-25 12:58 UTC · original
Test report: AMD Radeon RX 7800 XT (RDNA3, native wave64) for head
75dff2c9485617dd992fc2915d674f3b5b898b2f.Setup: RX 7800 XT, driver 32.0.31035.1003, Windows 11 Pro 10.0.26200, rustc/cargo 1.100.0, debug build, DXC 1.9.0.5512 (
dxcon PATH). Detached checkout of the PR head, which does not includeea088a5. I did not merge it with currentmain. I read the diff (pso.rsonly) before running it.Targeted (
cargo test -p xcl --lib -- rerouted_disk_entries_follow_compact_nesting_policy --nocapture --test-threads=1): 1 passed, 0 failed, 0 ignored. This is a CPU-side cache-identity test, so the GPU is not involved.Full suite (
cargo test --workspace --no-fail-fast -- --test-threads=4): 1242 passed, 2 failed, 46 ignored.gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: the known RDNA3 failure onmain.gpu::recomp::tests::gpu_image_get_resinfo_past_last_level: this PR's base predatesea088a5, which fixes it. The PR does not touch image code.SKIPPEDlines: 6 inlower_dxil::tests(f16 / f32 conversion programs refused) andheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows). These are not coverage.Not tested: retail title or
scripts/smoke.ps1(this is a runtime change, so the on-disk cache behaviour with a real title is unchecked), NVIDIA, Intel, Wine/vkd3d, this PR merged with currentmain.AI use: this report was run and written by Claude Code (Claude Sonnet 5.5). I read the diff but did not change any code.
@jennydeth on GitHub · 2026-11-25 14:32 UTC · original
NVIDIA run.
Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head
f5494de.Result: cargo test --workspace -- --test-threads=4: 1266 passed, 0 failed, 46 ignored. SKIPPED: 19 GPU tests for no wave64 (expected on this card) and the usual per-lane / heap-window / driver-cache skips.
Not tested: native wave64; a title run.
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
@nnonno91 on GitHub · 2026-11-25 15:21 UTC · original
Independent Windows check of
f5494de4a049a0673af3b58ee9ce564eaedb5224. Rerouted cache entries stayed separate for distinct nesting settings and were reused for equivalent settings. Ordinary HLSL kept reusing the same entry.Tested
cargo test --locked -p xcl --lib shader_cache_tests -- --nocapture --test-threads=1: 21 passed, 0 failed, 0 ignored, and no logged skips.cargo test --locked -p xcl --lib rerouted_disk_entries_follow_compact_nesting_policy -- --nocapture --test-threads=1reported 1 passed, 0 failed, 0 ignored, and no logged skips. Groups of 2 and 65,536 got separate entries.02reused the group-of-2 entry, and whitespace/case variations plus invalid sizes 3 and 65,537 reused the matching flat or auto entries. The fixture checked ordinary HLSL reuse throughout. Restored the clean worktree afterward.Not tested
Parent revision, a real oversized shader or GPU pipeline creation, retail titles, or the full workspace suite.
AI use
OpenAI Codex (GPT-6.2 Sol) prepared and ran the tests, verified the results, and wrote this report.
@DavidM1911 on GitHub · 2026-11-25 16:53 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!
@raylitebull on GitHub · 2026-11-25 18:40 UTC · original
Diff review (
f5494de) and green CI look clean, with exact-head NVIDIA verification in place. Holding merge solely for an exact-headf5494deAMD test report (the earlier RX 7800 XT run was on pre-rebase75dff2c).@ivall on GitHub · 2026-11-25 18:46 UTC · original
Merging at
f5494de: the rerouted cache identity now carries the nesting tag and the split limit, and plain HLSL entries keep theirs. The new test passes here.Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, on
main3f27770with #2420, #2257, #2408, #2247, #2338, #2097 and #2372 merged locally:cargo test --workspace --no-fail-fast -- --test-threads=4: 1367 passed, 2 failed, 46 ignored, 7 SKIPPED lines.mainalone, same command: 1354 passed, 3 failed, 46 ignored. Both failures left (fuzz_validate_and_gpu_1seed 722,_3seed 1599) fail the same way onmain. No title was run on the merged tree.AI use: Claude Code (Claude Opus 5.5) read the diff, ran the tests and wrote this on the maintainer's behalf.