D3D12.X: the driver's blob of a slow graphics pipeline is kept on disk #902
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!902
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-902"
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?
@mastrr9 on GitHub · 2026-11-24 08:00 UTC · original
mastrr9:perf/d3d12x-graphics-pso-disk-cache→main· +255 −6 · 1 files · 1 commits · openExtends XCL's on-disk driver PSO blob cache (
crates/xcl/src/hle/d3d12x/real.rs) to slow translated graphics pipelines (previously only compute pipeline blobs were persisted on disk):translated_graphics_psoloads any matching cached driver blob viaCachedPSOand persists blobs for graphics compiles taking>= 250 ms(keyed on all shader stage bytes, root signature / static samplers, fixed-function state, input layout, formats, sample desc, node mask, and flags; stream-output pipelines skipped).XCL_PSO_DISK_CACHE=0.Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalled433d7eed0acb34123d480c13754d11aca224b041(HEAD8427cedf280d2cfd006897811421729a4f60f11fhas an identical tree; only commit author metadata was updated after GitHub account rename)cargo build --workspace: clean (no new warnings; only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 717 passed, 0 failed, 41 ignoredSKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Not tested
scripts/smoke.ps1) not yet run (no retail title available in this clean-room environment); opened as Draft pending a smoke run.AI use
github-bot referenced this pull request2026-11-26 05:10:45 +00:00
@dcastell1 on GitHub · 2026-11-24 08:27 UTC · original
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean
main@beaa245(713 passed, 0 failed, 41 ignored on this box):Two more passing tests than main: keeping the driver's blob of a slow graphics pipeline is exercised here; nothing else changes verdict.
Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
@SlopTart on GitHub · 2026-11-24 09:34 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
8427cedonto main09940bb, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 711 passed, 7 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows. driver blob-on-disk tests green.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@mastrr9 on GitHub · 2026-11-24 14:38 UTC · original
Rebased cleanly onto current
main(930e8b4, PR head68b5f98664988827f999648a86c0388245ac9c3f), preservingpub(crate) mod driver_cacheand the new staging-file tests frommain. Thanks @dcastell1 and @SlopTart for the RTX 5090 and RDNA3 reports!@mastrr9 on GitHub · 2026-11-24 14:54 UTC · original
Verified rebased head
68b5f98664988827f999648a86c0388245ac9c3fon Windows 11 / NVIDIA RTX 5080 (cargo test --workspace -- --test-threads=4: 753 passed / 0 failed / 41 ignored, 0 new warnings).@Toons29 on GitHub · 2026-11-25 03:07 UTC · original
Regression run of
90d70031on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@JJAutoCompare on GitHub · 2026-11-25 05:50 UTC · original
Empirical test report (
90d70031)Verified commit
90d70031f179d405e8b34aaed20a9dede57c3c5dfor xcl-dev/xcl PR #902.Hardware / environment
10.0.26200.0. Host CPU identifierAMD64 Family 23 Model 113 Stepping 0, AuthenticAMD.1.100.0 (0ef1bc386 2026-11-09)and DXC1.9.2609.5 (01b62ad47). Unoptimized test profile with debug info and incremental compilation disabled.Invoke-ArcTest.ps1withXCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test binaries.cargo test -p xcl --lib hle::d3d12x::real::driver_cache::tests::a_graphics_file_is_named_after_the_shaders_state_layout_and_samplers -- --exactexited 0 with 1 passed.cargo test -p xcl --lib hle::d3d12x::real::driver_cache::tests::a_slow_build_is_made_from_its_kept_blob_the_next_time -- --exactexited 0 with 1 passed.SKIPPEDline count were 2 passed, 0 failed, 0 ignored, and 0 skipped.Observed behavior
Not tested
The full GPU workspace suite and game smoke runs were omitted. Real D3D12 driver
CachedPSOacceptance, graphics pipeline timings, and performance across game launches are outside this run's coverage.AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr902-focused.logand published.@DavidM1911 on GitHub · 2026-11-25 09:42 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.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.