D3D12.X: persist slow driver blobs past the RAM cache cap (#1833) #2574
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!2574
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2574"
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?
@razormontana on GitHub · 2026-11-25 23:19 UTC · original
razormontana:d3d12x/persist-driver-blobs-past-ram-cap→main· +73 −40 · 2 files · 1 commits · openPart 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.
@DavidM1911 on GitHub · 2026-11-25 23:45 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.Thanks!
— Devin
@xpatfussy69x on GitHub · 2026-11-26 00:01 UTC · original
Test run on exact head
e2aae0e(e2aae0e87df1499ddc393bec6b7b3d39adb24006, on its basee1d84b7), clean tree.Tested
cargo test --workspace -- --test-threads=4: 1425 passed, 0 failed, 46 ignoredV_MUL_F16/V_PK_MUL_F16/V_CVT_F16_F32(onmaintoo)cargo test -p xcl --lib a_slow_pipeline_is_saved: 1 passed, 0 faileda_slow_pipeline_is_saved_for_the_next_run_after_the_memory_cache_fills: okstoring_a_pipeline_still_observes_the_size_and_time_thresholds: okRegression run (60 s, default settings, a retail title)
main:
this PR:
No crash or device removal; frames 101 % of
main's, peak commit 100 %. Themainrun is on currentmain(08db802), newer than this PR's base.Not tested
main(tested on its own base; it merges into08db802without conflicts)AI use
@ramon-victor on GitHub · 2026-11-26 00:05 UTC · original
Independent NVIDIA (wave32) full-suite + retail smoke test report on exact PR head
e2aae0e87df1499ddc393bec6b7b3d39adb24006(clean detached checkout, no local changes).Tested
x86_64-pc-windows-msvc), DXC/DXIL 1.8.2502.11 (Windows SDK 10.0.26100.0); debug tests, release smoke.cargo test -p xcl --lib driver_cache::tests): 6 passed, 0 failed (including the 2 new testsa_slow_pipeline_is_saved_for_the_next_run_after_the_memory_cache_fillsandstoring_a_pipeline_still_observes_the_size_and_time_thresholds)..\scripts\test.ps1): 1425 passed, 0 failed, 46 ignored (25 GPU skips expected on this wave32 adapter: 21no wave64, 1no heap windows, 3 wave32 per-lane refused for#1426f16/f32 semantics).cargo build --release -p xcl) and 60 s retail smoke run (XCL_NETWORK=0, compared againstmain @ 08db802baseline on the same machine today:1605frames,15009 MBpeak commit,0crashes,0device removals):Regression run
Not tested
XCL_SAMPLE_*tests (unset).AI use
@pickles976 on GitHub · 2026-11-26 04:42 UTC · original
Wine/NVIDIA cross-check of the focused tests — all pass. Head
e2aae0e87df1499ddc393bec6b7b3d39adb24006, Linux + Wine 11.0, vkd3d-proton 3.2.0 (2576c0b4adfae4a), NVIDIA 590.48.1, RTX 4060 Laptop GPU 8 GiB,--locked --target x86_64-pc-windows-msvc, one test thread, freshCompiling xcl .../xcl-pr2574/...provenance,DXVK_CONFIG='dxgi.hideNvidiaGpu = False'.cargo test --locked --target x86_64-pc-windows-msvc -p xcl --lib hle::d3d12x::real::driver_cache::tests:: -- --nocapture --test-threads=1→ 6/6 pass on the real adapter, including the newa_slow_pipeline_is_saved_for_the_next_run_after_the_memory_cache_fills(the log shows the late blob recovered through the disk path after the RAM map is dropped: "2 driver blobs kept on disk for the next run (this one: 250 ms…)") and the unchangeda_kept_blob_is_read_back_and_a_refused_one_is_dropped(its kept-on-disk reload and the refused-foreign-adapter branch both behave). The four pre-existing tests pass unmodified.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:
.compat-xcl/logs/verify-pr2574-wine-blob-cache.log(local). AI-assisted verification and report (OpenAI Codex).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.