d3d12: discard stale pipeline libraries across driver updates and self-heal refused entries (D3D12-PIPELINE-LIBRARY-DRIVER-STAMP) #2789
Open
github-bot
wants to merge 12 commits from
github-bot/gh-2789 into main
AGit
pull from: github-bot/gh-2789
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2789
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2789"
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?
@zmasi on GitHub · 2026-11-30 21:08 UTC · original
zmasi:fix/d3d12-pipeline-library-driver-stamp→main· +1258 −86 · 2 files · 12 commits · openSummary
Fixes #2781 (
D3D12-PIPELINE-LIBRARY-DRIVER-STAMP).Across NVIDIA driver updates (
616.64 -> 621.01),ID3D12Device1::CreatePipelineLibrarycan accept the outerhost-pipelines.bincontainer at startup whileLoadGraphicsPipeline/LoadComputePipeline/LoadPipelinesubsequently reject every stored blob withE_INVALIDARG(0x80070057). Whenpipeline()recompiled each refused PSO (410–5,228 msper hitch) and calledStorePipeline(name, &pso),StorePipelinealso failed withE_INVALIDARGbecause anID3D12PipelineLibrarycannot overwrite an existing name — leavingadded == 0(or re-serializing the stale blobs back to disk) and keeping the mismatched driver's library alive until device removal (0x887A0005).This change adds two defense-in-depth layers inside
d3d12/crates/leonida-gpu/src/pipeline/library.rs, controlled byLEONIDA_LIBRARY_DRIVER_CHECK(on by default;LEONIDA_LIBRARY_DRIVER_CHECK=0restores the previous behavior):Proactive adapter & driver stamp sidecar (
host-pipelines.driver):vendor,device,subsys,revfromDXGI_ADAPTER_DESC1plusHost::driver()whendriver != 0) alongsidehost-pipelines.bin.open_in(), ifhost-pipelines.drivernames a different adapter or driver,host-pipelines.next,host-pipelines.bin, andhost-pipelines.driverare discarded upfront beforeCreatePipelineLibraryis called, and an empty library is started cleanly.<stamp> older=1on save until replaced, preservingOrigin::doubtful()for Layer 2.Reactive self-healing swap (
Library::keep/stale/begin_anew):RwLock<Active>(keepingsavingseparate soSerializenever blocks loads).Load*Pipelineon generationg,create()succeeds,StorePipeline(name, &pso)fails withE_INVALIDARGon the same generationgwithoutnamehaving been stored in this run (Seen::stored, guarded undersame_name(name)), and a fresh empty library acceptspso,begin_anew()atomically swaps in the fresh library, replays non-title static-sampler probe pipelines (Seen::besideforpipeline::places), retains any mappedBlobinLibrary::retired(releasing its working-set pages viaVirtualUnlocksotrim()andremoval_note()never see an unmapped view), and marks the library dirty (anew) sosavereplaceshost-pipelines.binand writes this driver's plain stamp.std::ptr::null()) toCreatePipelineLibrarywhenbytes.is_empty()(avoiding Rust's dangling0x1empty-slice pointer on VKD3D-Proton), uses unique staging filenames on save, and removes any stalehost-pipelines.nextwhen an in-place rename succeeds.Verification
Tested on Windows 11 (
10.0.26200), NVIDIA GeForce RTX 3090 (driver610.88, UMD32.0.16.1088), and D3D12 WARP (0x1414):16tests inpipeline::library::tests,47passed acrosspipeline::):with_the_check_off_a_refused_pipeline_is_made_in_every_run(reproduces repeated0x80070057on bothLoadComputePipelineandStorePipeline,added == 0, unchanged file across restarts whenLEONIDA_LIBRARY_DRIVER_CHECK=0).a_pipeline_neither_loaded_nor_replaced_begins_the_library_anew(verifies swap +0.005–0.015 mssubsequent loads across both mapped and held blobs).a_library_of_another_driver_is_not_handed_to_the_hostanda_library_of_another_driver_that_cannot_be_deleted_is_not_called_this_drivers.a_name_stored_in_this_run_does_not_begin_the_library_anew(4-thread barrier benign-race test),threads_that_find_it_out_together_begin_the_library_anew_once(8-thread single-swap race test), andpipelines_kept_beside_the_titles_go_into_the_library_begun_anew(placesprobe carry-over).cargo clippy -p leonida-gpu --all-targets --lockedand--features diagnostics --all-targets --locked:0warnings inlibrary.rs; single touched file (host.rsandmake.rsuntouched).python -I tests/test_d3d12_switches.py(19/19passed) andpython -I scripts/check_no_game_data.py(rc=0).AI-assisted: authored with Claude Fable 5.2, independently reviewed with Gemini 4 Neon (XHigh), and verified with Gemini 4 Carbon (High).
@KelboLive on GitHub · 2026-12-01 04:47 UTC · original · reviewed
Verified here on the machine that has the problem: NVIDIA
0x2705with the driver line captured,cargo test -p leonida-gpu --lib pipeline::-> 47 passed, 7 ignored (16 new library tests, and the GPU ones really ran — one prints "loaded from the library begun anew in 0.009 ms"),tests/test_d3d12_switches.py19 OK with the switch read as "on,0turns it off".The mechanism does what it says for a pre-sidecar cache:
stamp_of(library.rs:928) writes vendor/device/subsys/rev plusHost::driver()(host.rs:1373),open_in(:990) classifies it, a mismatch discards the pair throughdiscard(:948), and on a refusal that also loses the store,stale()+begin_anew(:749,:767) swap in an empty library andsavewrites a clean file under this driver's stamp. Nothing refused is ever written back: serialisation only ever usesactive.library.Two notes.
E_INVALIDARGon this device (the tests assert that after a swap), so the first run still logsmade … did not load it: 0x80070057for nearly every pipeline and still compiles all of them; the second run is the healed one. Otherwise testers (this machine included) will read the first run as the fix not working.replace_librarytreats a failed removal ofhost-pipelines.nextas success (library.rs:1302-1308). If NEXT is held by something else — a casediscardalready documents — the rename succeeds, the removal fails silently, andnote(dir, &active, true)(:1246) writes this driver's plain stamp (:877-884). The next start then trusts the line,Blob::of(:263) renames the surviving other-driver NEXT over the library, the file loads asOrigin::Noted, andstale()never heals it. Reproduced with NEXT heldshare_mode(0): after the save the line names this driver while NEXT still exists, and the next run stays(0, Noted)after a refusal. Only write the plain stamp when NEXT is actually gone (or adopt NEXT before comparing the sidecar).@Kal0s-design on GitHub · 2026-12-01 06:13 UTC · original
Independent Windows check of
e38238383on currentmain640b0d0df(no conflict, merge5ec44016e). Native Windows 11, MSVC x64, Rust 1.98.1, with a hardware D3D12 device, so the library tests that make real pipelines throughCard(host().device→ID3D12Device1) ran rather than skipped.cargo test -p leonida-gpu --lib: 609 passed, 0 failed, 54 ignored.mainlists 653 tests, the merge 663, so the 10 newpipeline::librarytests are the only addition.pipeline::librarytests, the new ones included, run 200 times on their own in the release build with 16 test threads: 0 failures. That coversthreads_that_find_it_out_together_begin_the_library_anew_once,a_library_of_another_driver_is_not_handed_to_the_hostandconcurrent_write_atomically_never_fails_or_truncates.AI-assisted: yes
@Neutron-0 on GitHub · 2026-12-01 10:20 UTC · original
A heads-up for this pull request: the page of D3D12 switches (
d3d12/docs/switches.md) is written bytools/d3d12_switches.pyfrom the sources ofd3d12/, and 1 name this pull request reads is not on the page yet:LEONIDA_LIBRARY_DRIVER_CHECK.Nothing checks that today, so the page has drifted before (it was a name behind when this was measured). A test that checks it is waiting to be opened (DOCS-SWITCHES-PAGE-CHECK), and it would make this pull request's CI red until the page is written again. One command does that:
It writes the page with the names in it and nothing else; the diff is the new rows.
@zmasi on GitHub · 2026-12-01 10:58 UTC · original
Thanks for the heads-up @Neutron-0 — regenerated
d3d12/docs/switches.md(LEONIDA_LIBRARY_DRIVER_CHECK,--checkrc 0) in573f7f216.AI-assisted: Gemini 4 Carbon.
@merzleckeier on GitHub · 2026-12-01 12:17 UTC · original
Independent check of
573f7f216onc60ce461a. All 16 pipeline-library tests completed on both GPUs, using the Windows MSVC test binary under Wine and vkd3d-proton 3.1.0 withVKD3D_CONFIG=pipeline_library_app_cache. GPUs were AMD Raphael (RADV 26.3.1) and RTX 4070 SUPER (NVIDIA 620.73.4).The test cases cover a differing driver note, refusal of a cached compute pipeline with the check off, saving and then reloading a rebuilt entry with the check on, and concurrent detection rebuilding the library only once. The revisions to the library state were synthetic. A native Windows driver upgrade was outside the run.
AI-assisted with OpenAI Codex.
@lixonik on GitHub · 2026-12-01 21:49 UTC · original
Independent check of
c44b20fecmerged cleanly onmain(1e3e316c5), on native Windows 10 Pro 22H2 (build 19045) + NVIDIA GeForce RTX 5070 12 GB (driver621.40, Ryzen 9 5950X):cargo test --locked -p leonida-gpu --lib pipeline::library -- --nocapture: 16 passed, 0 failed (live GPU self-heal tests ran on RTX 5070 /621.40, printingloaded from the library begun anew in 0.009 msand0.008 ms).cargo test --locked -p leonida-gpu --lib pipeline:: -- --skip depth_bounds_pipeline_loads_and_filters_draws: 47 passed, 0 failed, 8 ignored (depth_bounds_pipeline_loads_and_filters_drawsskipped for the separate Win10 inboxd3d12.dllSM 6.6 flag issue tracked in #2855).python -I tools/d3d12_switches.py --check d3d12/docs/switches.md: exit0;test_d3d12_switches.py: 19 passed, 0 failed.pipeline/library.rs.AI-assisted: Antigravity
@fiestorra on GitHub · 2026-12-01 22:31 UTC · original
Independent verification on an RTX 4090, driver 621.24 (32.0.16.2124), Windows 11 - by the method in
AGENTS.md(PR ref, merge-tree, apply it onmain, run what it touches).Applied on
main1fff69129:One thing worth knowing: a commit-by-commit cherry-pick of the range (
3dd1bf42..c44b20fec, 8 commits) does conflict inpipeline/library.rs-mainmoved under it. The squash-merge is clean, so merging is fine; a rebase would be needed only if the branch is to be kept linear.What it does here:
What I could not test, and would not claim: the case the issue is about - a library written under one driver and opened under another. Downgrading this machine's driver is not something I will do to a working setup, so the 616.64 -> 621.01 transition is verified only through your own tests (
a_library_of_another_driver_is_not_handed_to_the_hostand the two that begin the library anew), which is a fake stamp, not a driver that changed. And the title was not run with it.What that leaves as risk: the stamp is read from
DXGI_ADAPTER_DESC1, and the case that matters is a driver update that keeps the same device id and changes only the UMD version - if the driver applies its version elsewhere than the fields you read, the stamp would not move and the library would still be handed over. Worth one line in the PR saying which fields change on an update, since the person who can check it is someone who upgraded and kept the old file.AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
@andrew-ai on GitHub · 2026-12-02 00:26 UTC · original · edited 2026-12-02 00:29 UTC
At
4cec236e4I queried the production stamp(host) in three fresh Windows processes using one diagnostics build. The RTX 5070 returned vendor 0x10de, device 0x2f04, driver 9007199255791260. WARP returned vendor 0x1414, device 0x008c, driver 2814751477606228. Returning to the 5070 reproduced the complete first stamp byte for byte.I then exercised both on-disk mismatch tests on the 5070, substituting that measured WARP stamp in the test sidecar. With the check enabled, the ordinary case discarded the stale library, saved a rebuilt pipeline under the current stamp and loaded it on reopen. With an exclusive handle on the stale library file, the save could not replace it. The file was not relabeled as current, and reopening started with an empty library. Both tests reached the readback assertions; I added temporary test-only output to distinguish that from an early return.
These are real D3D12 pipeline files in temporary directories, with deliberately mismatched metadata. No driver installation was changed. Codex-assisted.
@MoonEyes on GitHub · 2026-12-02 12:25 UTC · original
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
@ninjalegxd on GitHub · 2026-12-02 14:53 UTC · original
Tested this PR on RTX 3090, driver 621.14 (32.0.16.2114), Win11, -SeriesS -NoFrameGen:
pipelines=Older(unstamped)Important: this library was created fresh last night by the SAME driver (621.14),
after I had moved the previous one aside. So on this machine the blobs are refused
without any driver change; the stamp alone can't catch it, and the self-heal swap
did not trigger either.
Log attached.
play-1202-164536.log
@ninjalegxd on GitHub · 2026-12-02 14:55 UTC · original
Head tested:
4bd128a8c7.Numbers for comparison, same PC / save / area, -SeriesS:
2705632c5and before)4bd128a8c7)On main, 2 of the 4 runs had -FsrFrameGen and 2 had -NoFrameGen; all lost the device.
The PR run was -NoFrameGen.
@merzleckeier on GitHub · 2026-12-02 15:11 UTC · original · reviewed
On
4bd128a8merged onto83046a71, all 16 library tests reported pass on both Radeon RADV and RTX 4070 SUPER (Wine 11.22 / VKD3D-Proton). I also ran a local probe that required a real D3D12 device and supplied a synthetic same-driver stamp, so the provenance cases could not skip for missing driver metadata.On both GPUs, four free-name
LoadComputePipelinecalls each returnedE_INVALIDARG, but the newly compiled pipelines stored successfully and the library stayed in generation 0. Changing the descriptor of an existing name produced the same load HRESULT and a duplicate-name store refusal. Witholder=1, that triggered the replacement and the rebuilt entry loaded successfully. The replacement no longer held any of the four fresh entries stored earlier in that run. With a plain current stamp, no replacement happened and all four remained.The load HRESULT count alone therefore cannot show why the reported run did not swap. Recording the store result and origin on the refusal path would help distinguish these cases. This probe uses synthetic pipelines and does not establish a cause for the reported device loss. Reported run
The head merges cleanly on
83046a71. Pairwise merge-tree checks with #2654 and #3150 each reported a conflict inpipeline/library.rs. AI-assisted with OpenAI Codex.@fiestorra on GitHub · 2026-12-02 15:16 UTC · original
Read the 3090 report against what this branch actually stamps, because it separates into two things that are not this change.
1. The head is right, the merge is not the requested one.
4bd128a8c7is the current head, as the report says - but it was merged with amainthat has since moved: the branch is 60 files behindorigin/mainright now (docs/lua-modding.md,scripts/play-linux.sh,tests/*), so a report on this head is not a report on "the current head merged onto current main". A fresh merge + a re-run is what @MoonEyes asked for, and it is cheap.2. The device removal is not this change.
device removed (0x887A0005) after ~5 minis #3068's exact shape ("after 7–18 min of play, right after a masked-twin ..."), and it happened onmainbefore this branch existed. Whatever the library does, that will still be there, so the two should not be read together.3. The 35 loads that failed are the interesting part, and the stamp does not explain them. What the note records is "one line that names the adapter and driver" (
library.rs:584-586), andolder=1marks a library taken over from before the check existed. A library made by another build of the layer on the same card and driver passes that check and is loaded, and the reporter says this one was "created fresh last night by the SAME driver" - so a library from a different build of the layer is exactly the case the stamp cannot see.But it is not simply "another build" either: on this machine (RTX 4090, driver 621.24) a library written by one build loads in another -
540 of 540 in the pipeline library, written in 21 sin aleonida warmrun against last night's cache. So the build is a variable, not the whole story, and0x80070057(E_INVALIDARGout ofLoadPipeline) says those particular blobs were refused rather than the library being from elsewhere.What would settle it, in that log:
host-pipelines.drivernext tohost-pipelines.bin- it names the adapter and driver, so it says whether the check thought the library was its own;the library did not load it ... (0x80070057)line with its pipeline name, and whether the same pipelines were made again in that run (they would appear in thewarm/first bindlines);AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
@ninjalegxd on GitHub · 2026-12-02 15:21 UTC · original · edited 2026-12-02 15:24 UTC
Checked the log as asked: the refused loads are new pipelines, not stale blobs.
Example: [mesh 024bb426570bd221, pixel 1dc40c638c94c4b0] "did not load it (0x80070057)".
The same log shows
shader translated stage="mesh" hash=024bb426570bd221and its first bindat 14:50:08, i.e. first time in that run. All 35 lines are in the dump printed at the removal
("ms before"), from the last ~30 s, after a burst of new pipelines in a new area.
host-pipelines.driver:
vendor=0x10de device=0x2204 subsys=0x40431458 rev=0xa1 driver=9007199255791682 older=1
(= 32.0.16.2114, the installed 621.14)
So the library looks fine here; my device loss matches #3068 rather than this PR.
AI-assisted: -Claude Opus 5.5 helped analyze the logs and draft all comments.
@MoonEyes on GitHub · 2026-12-02 17:04 UTC · original
RUN (independent run on Windows, #2789 head
4bd128a8c, merged locally intomain5b1fff821withgit merge --no-ff)Machine: RTX 4060, driver 32.0.16.1088. Only
leonida-gpuwas built (release,--locked). The pipeline library tests make real pipelines on the card; they return early when there is no GPU, and here there is one.Red (main's
library.rsswapped back into the merged tree, same command:cargo test -p leonida-gpu --release --locked --lib -- pipeline::library)git statusclean.Green (merged tree)
-- pipeline::library: 16 passed, 0 failed (the 6 of main plus 10 new, among thema_library_of_another_driver_is_not_handed_to_the_host,..._that_cannot_be_deleted_is_not_called_this_drivers,a_library_this_driver_made_whole_is_not_begun_anew,the_line_beside_the_file_says_what_is_known_of_the_library,the_adapter_and_driver_are_named_on_one_line).leonida-gpulib: 713 passed, 0 failed, 59 ignored (the ignored ones are measurements or marked so in the code).Mutations (each one edit in
pipeline/library.rs, then the 16 library tests)if false && driver_check()inopen_in): 2 fail (a_library_of_another_driver_is_not_handed_to_the_host,..._that_cannot_be_deleted_...). Killed.Noted): 4 fail. Killed.discardno longer deleteshost-pipelines.bin): 2 fail. Killed.driver=written with the adapter revision): 1 fail,the_adapter_and_driver_are_named_on_one_line. Killed, but only by that pure test: the on-card tests build both sides with the same function, so they would not see it.Origin::Empty if replaced => return): 2 fail. Killed.5 of 5 killed.
Review
host-pipelines.driverdiffers from the current one, sodiscarddeleteshost-pipelines.next, then the library, then the line, and an empty library is begun in the same run. No crash, nothing handed to the host; every pipeline is compiled once and the first save writes a library and a line for the new driver. The test then reloads it and getsOrigin::Notedwith the pipeline loaded from the file.older=1) is read as another driver, so the library is discarded. The line is escaped and cut to 160 characters before it is logged. Non-UTF-8 bytes are read lossily, so they also mismatch.Unnoted), so nothing changes for those. The old fallback then covers it: when a load is refused and the replacement cannot take the name, the library is begun anew once. This is the case of anyone who already has a stale file from before this PR; they are fixed on the first refusal, not at open.LEONIDA_LIBRARY_DRIVER_CHECK=0returns to the old behaviour; it is inswitches.md.Host::driver(); I did not check it moves between two NVIDIA builds that share a version number (hotfix reinstall).Not covered: no in-game run from me; the 3090 run is pending. Not run: the other crates, and the real driver-update path (the tests write an older line by hand; no second driver was installed).
Verdict: PASS on the tests and the review. Red is shown by mutation, not by main's own tests.
AI-assisted (Claude Code).
@enlight3d on GitHub · 2026-12-02 17:07 UTC · original
RUN (in game, gate-style, as asked by MoonEyes): head
4bd128a8ctested in a batch with #2643 (2cea6871c), #3031 (a47b86855), #2789 (4bd128a8c) and #2661 (1b3f3dee0), all merged withgit merge --no-ffontomain23a51c494(no conflict; the only file the four share isd3d12/docs/switches.md). Built withdiagnostics,mimalloc, targetx86_64-pc-windows-msvc. RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro (build 26300).Launcher defaults, Series S settings,
-NoDlss -NoFrameGen, standing at the save; a warm-up run first (the batch changes the translator, so everything was re-translated), then one run of 420 s with the memory safety stop:This pull request's own lines:
host-pipelines.driverwas written during the warm-up (stamp with the adapter and driver,older=1as the change describes for a pre-existing library), the library then loaded (pipelines=Older) and saved with 2,330 pipelines loaded and 47 made, and no "the library did not load it" line appeared. No driver change was exercised here (the driver did not change between runs).Verdict: PASS for the batch (a pass covers each of the four; a failure would not have said which). Not covered here:
-RayTracing(a run with it is queued), DLSS frame generation with ray tracing (needs an RTX 40/50 card), other GPUs.AI-assisted: Claude Code (Claude Opus 5.5)
@MoonEyes on GitHub · 2026-12-02 17:12 UTC · original
Merging. Head
4bd128a8cmerges cleanly withmain5b1fff821and does not force a rebase of #2566. In-game gate: enlight3d's batch run on the RTX 3090 with this head4bd128a8cmerged onto main (lot A: #2643, #3031, #2789, #2661), PASS, comment 7352941075. Independent red/green by MoonEyes' agent on4bd128a8c: pipeline::library 16 passed, leonida-gpu lib 713 passed; 5 of 5 targeted mutations killed (stamp not compared, stamp ignored on mismatch, old file kept, wrong driver field, line never written), comment 7352861392. CI green incl. no-game-data. Not claimed as the fix for the device-removed reports, which point at #3068. Merged by MoonEyes.AI-assisted (Claude Code).
@MoonEyes on GitHub · 2026-12-02 18:29 UTC · original
Verification triage of #2789
Head
4bd128a8cis already verified on this exact head: ninjalegxd, MoonEyes (independent run) and enlight3d (in-game gate run). MoonEyes posted "Merging" on this head at 2026-12-02 17:12. The PR is still open, its merge state is nowclean, and CI passes (6/6). No new run here (Windows-only). Verdict: ready (already verified; a maintainer is merging it).AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
@zmasi on GitHub · 2026-12-03 03:32 UTC · original
Merged
origin/main(516c9eaabf) intob511f5c930strictly to regenerated3d12/docs/switches.md(needs rebase);d3d12/crates/leonida-gpu/src/pipeline/library.rshas a byte-identical diff againstorigin/maincompared to4bd128a8c7.AI-assisted: Gemini 4 Carbon (High) and Gemini 4 Neon (XHigh).
@MoonEyes on GitHub · 2026-12-03 04:29 UTC · original
RUN (in game, batch of two pull requests), each head merged with
git merge --no-ffonto main516c9eaab, in one build: #2789b511f5c93, #307298a532249. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x,-PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.
Limits: one run; arrival in the world was driven by keys and not checked on pictures;
-PrecompileUsedwas used, so the default start (every known pipeline precompiled) was not exercised. Both were in earlier batches on other heads; this run covers their current heads. #2789's discard of stale pipeline libraries only acts after a driver update; the driver did not change here, so that path was not exercised.AI-assisted (Claude Code).
@merzleckeier on GitHub · 2026-12-03 04:53 UTC · original
Integration check on
b511f5c9. The head merges cleanly with both #3286 (8c56cb6b) and #2948 (5284c6ea) in separate pairs. I built the #3286 pair for Windows MSVC and ran the synthetic driver-stamp formatting test under Wine. It passed, as did the catalog checker and all 20 catalog tests.In the merged #3286 source,
Host::driver()queries the adapter stored from the created device’s LUID. The pipeline library also finds its descriptor via that device LUID. Thus an explicit WARP selection or a change to the default adapter picker still sources both fields from the device that was actually created. The run covered the CPU stamp fixture. Live adapter switching is outside that test’s scope. AI-assisted with OpenAI Codex.@zmasi on GitHub · 2026-12-03 11:32 UTC · original
Merged
origin/main(6e97990505,#3318) into4cd9d71f80strictly to regenerated3d12/docs/switches.md(needs rebase);d3d12/crates/leonida-gpu/src/pipeline/library.rshas a byte-identical diff againstorigin/maincompared tob511f5c930.AI-assisted: Gemini 4 Carbon (High) and Gemini 4 Neon (XHigh).
@MoonEyes on GitHub · 2026-12-03 14:31 UTC · original
RUN (in game, third party, batch of five pull requests), each head merged with
git merge --no-ffonto mainb053a1813, in one build: #2686c5269801b, #26432e0b23a00, #27894cd9d71f8, #30720f1e26355, #299991537d2af. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x,-PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.6 fps on other runs today: a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. #2834 was left out of the batch (it conflicts with the others).
Limits: one run; arrival in the world was driven by keys and not checked on pictures. The precompile took 589 s (the batch changes shader code, so the pipeline cache was cold). Switches that are off by default were not turned on: this run covers their default path only.
AI-assisted (Claude Code, Claude Opus 5.5).
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.