Repository navigation
D3D12.X: persist slow driver blobs past the RAM cache cap (#1833) - #2574
razormontana wants to merge 1 commit into
Conversation
Save an eligible driver blob even when the bounded in-memory cache cannot retain it. The RAM caps, disk identities and eligibility stay. The saturated-cache fixture recovers the late blob from disk after dropping the in-memory cache. Assisted-by: Codex (GPT-6.2 Astra)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! — Devin |
|
Test run on exact head Tested
Regression run (60 s, default settings, a retail title) main: this PR: No crash or device removal; frames 101 % of Not tested
AI use
|
|
Independent NVIDIA (wave32) full-suite + retail smoke test report on exact PR head Tested
Regression run Not tested
AI use
|
|
Wine/NVIDIA cross-check of the focused tests — all pass. Head
Scope: synthetic fixtures with a small cache and controlled timing inputs — no retail cache saturation or cold-compile timing measured here, and no title run. On this 16 GiB host the change is relevant exactly as scoped: a saturated RAM blob cache no longer silently loses slow translated pipelines between sessions. Log: |
…nvalidation (port upstream xcl-dev#2574 + xcl-dev#2614) (cherry picked from commit a37262db59ac82c615618b034d149e7c54a23ff6)
Part of #1833. A slow translated pipeline could fail to leave a driver blob for the next run when XCL's in-memory blob cache was full. Save eligible blobs to disk independently of RAM admission so later sessions can reuse them.
What is in it
real.rsuses one captured blob for the RAM and disk paths covering translated compute, translated graphics and the compute pass of two-pass pipelines. It still uses the existing keys, memory limits, minimum DXIL size and disk-write eligibility.README.mddocuments that disk saves can continue when the RAM budget is full.Tested
cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputone2aae0ereported 1425 passes, 0 failures, and 46 ignored. There were 26 explicit runner skips within the pass count.cargo test --offline --locked -p xcl --lib hle::d3d12x::real::driver_cache::tests:: -- --nocapture --test-threads=1passed all six focused tests with no skips. With the previous admission rule, the saturated-cache test found no file after dropping the RAM map. The new rule recovered the late blob while keeping the first blob within the RAM cap.cargo build --offline --locked --release -p xclsucceeded.scripts/smoke.ps1ran the same title offline for 60 seconds per arm with direct DXIL and matching cache seeds.Regression run
Main
PR head
Not tested
AI use
Yes, Codex GPT-6.2 Astra implemented the change and ran the focused tests. Codex GPT-6.2 Sol reviewed the patch, ran workspace and retail checks, and prepared this description.