d3d12: give an empty pipeline library a null blob (D3D12-VKD3D-EMPTY-PIPELINE-LIBRARY) #2654
Open
github-bot
wants to merge 4 commits from
github-bot/gh-2654 into main
AGit
pull from: github-bot/gh-2654
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!2654
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2654"
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?
@kuzeyc on GitHub · 2026-11-29 22:40 UTC · original
kuzeyc:fix/vkd3d-empty-pipeline-library→main· +52 −10 · 2 files · 4 commits · openItem:
D3D12-VKD3D-EMPTY-PIPELINE-LIBRARY(claim: #2570)What is wrong
pipeline/library.rs(open) makes the empty host pipeline library withCreatePipelineLibrary(&[]). Thewindowscrate passes an empty slice's pointer, which is dangling, not null, with a length of 0. Microsoft's D3D12 takes that. VKD3D-Proton answersE_INVALIDARG(0x80070057), andmake(&[]).ok()?dropped the error, so under Wine and Proton the run keeps no library:Nothing is stored or saved (
cache/pipelines/host-pipelines.binnever appears), and every start makes every pipeline again.The change
CreatePipelineLibrarythroughblob_pointer(), which gives a null pointer for an empty blob.the host refused an empty pipeline library, with the error) instead of dropped.an_empty_blob_is_given_as_a_null_pointer.One file,
d3d12/crates/leonida-gpu/src/pipeline/library.rs.Tested
cargo xwin test --target x86_64-pc-windows-msvc -p leonida-gpu --features diagnostics -- pipeline::library, run under Wine 11.23: 7 passed, 0 failed (the new test and the six that were there).play-linux.shof #2577.919c0a9e2, with a log line added at that call):CreatePipelineLibrary refused error=Invalid parameter. (0x80070057), thenpipelines are not kept.cache/pipelines):host pipeline library saved bytes=248 ... made=1. With the same fix on #2577's tree, the next start loggedhost pipeline library loaded bytes=6584andhost pipelines all made made=0 loaded=34.python -I scripts/check_no_game_data.py d3d12/crates/leonida-gpu/src/pipeline/library.rs: clean.The new unit test checks the pointer, not the host: it passes on
maintoo as far as the D3D12 call is concerned, since Microsoft's runtime accepts the dangling pointer. The failure only shows under VKD3D-Proton, which is what the hardware runs above are for.Related
AI-assisted (Claude Code).
🤖 Generated with Claude Code
@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-29 22:40 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
@merzleckeier on GitHub · 2026-11-29 22:48 UTC · original
Independent synthetic A/B of
f1794125(GitHub merge71250d7bonto452d1d1b). Win64 MSVC-target Rust 1.98.1, Wine 11.22, VKD3D-Proton71cae091, DXC1.8.2505.32, RTX 4070 SUPER (620.73.04) and Radeon Raphael (RADV 26.3.1).depth_bounds_pipeline_loads_and_filters_drawsanda_mesh_pipeline_loads_from_the_library. With this PR each passed 3/3, including both depth readbacks. The library unit group went from 5 passed and the rejected-blob test failing to 7/7 on each GPU. An initial blank NVIDIA process timeout was outside the completed baseline sample.CreatePipelineLibrary(&[])call returned0x80070057. The PR path created one PSO and serialized the library, 15,664 bytes on NVIDIA and 3,136 bytes on RADV. A new process loaded the first PSO (loaded=1, made=0) and left the file size unchanged. It also rebuilt and saved successfully after I substituted a malformed blob. Each case passed 3/3 per GPU.8f5f02d80combined cleanly with this PR (local tree1b933a60). Cold and warm behavior matched the standalone PR. Replacing onlyhost-pipelines.fingerprintwith a stale value forced a rebuild and a fresh save, in 3/3 per GPU. All 36 instrumented invocations passed the depth fixture.This resolves the local Wine library assertion I reported in #2648. The hosted native Windows pixel failure there remains open. Small build note: the
!empty.as_ptr().is_null()assertion atlibrary.rs:906emitsuseless_ptr_null_checks. The test already checks the converted pointer immediately above.Synthetic fixtures only. AI-assisted with OpenAI Codex.
@kuzeyc on GitHub · 2026-11-29 22:53 UTC · original
Thanks for the A/B on both GPUs, and for checking it together with #2569.
55ac5d337: drops the!empty.as_ptr().is_null()assertion thatuseless_ptr_null_checksflags. The converted pointer is still checked just above.pipeline::libraryis 7/7 under Wine 11.23, and clippy has no warnings inlibrary.rs.main" question better than my new unit test does. Under VKD3D-Proton,a_rejected_blob_gives_an_empty_library,depth_bounds_pipeline_loads_and_filters_drawsanda_mesh_pipeline_loads_from_the_libraryfail onmainand pass with this PR, on both your RTX 4070 SUPER and RADV.AI-assisted (Claude Code).
@z3r0rc on GitHub · 2026-12-01 10:45 UTC · original
We independently landed exactly this on our tree and can confirm it end-to-end under Wine. Before the null-pointer fix, with
CreatePipelineLibraryreceiving the dangling non-null + 0, the library was dead here under Wine + VKD3D-Proton master (RTX 4090, NVIDIA 620.73.04): every start logged "no host pipeline library: pipelines are not kept", nothing was written at clean exit, and the entry backlog peaked ~1038 every run. With this shape — vtable call, null for the empty blob — the loop closes:saved bytes=448760 made=2347at a clean close, loadedmapped=trueat the next start, compounding 605,624 → 641,336 bytes over the next three windows with the entry backlog shrinking each time. Yourblob_pointerhelper is the cleaner way to state the rule; we inlined the same thing. Happy to test this PR as-is on our machine if useful. AI-assisted; measured logs on the setup above.@KelboLive on GitHub · 2026-12-01 17:55 UTC · original · reviewed
Not superseded, and the fix is correct: main still has
device.CreatePipelineLibrary::<ID3D12PipelineLibrary>(bytes)?.cast()(library.rs:522) withmake(&[]).ok()?(:551), and windows-rs 0.62.2 doestransmute(plibraryblob.as_ptr())on an empty slice (Windows/Win32/Graphics/Direct3D12/mod.rs:9959) — a dangling non-null pointer. The manual vtable call withnull+ 0 is the right fix, and the rejected-blob test exercises that path against native D3D12 here (7/7 pass, clippy clean inlibrary.rs).One test gap: replacing
blob_pointer(bytes)at the call site withbytes.as_ptr().cast()leaves all 7 tests green — only the helper is asserted, not thatopenuses it. A small seam (or the replay vtable) that checks the pointeropenpasses would close it, since the bug is only observable under VKD3D.Also
d3d12/crates/leonida-gpu/tests/replay.rs:193still callsCreatePipelineLibrary(&[])through windows-rs, so the replay test keeps the same dangling pointer under Wine — worth switching too.Branch is 1068 commits behind main; merge-tree is clean (
0b142434a), but the head predates #2648's d3d12 cargo-test CI, so no checks have run. A rebase is needed for CI; otherwise this is good to merge.@merzleckeier on GitHub · 2026-12-01 20:42 UTC · original
Current-head hardware check of the empty-library call on
55ac5d33, merged into66c79286f, and combined on that same base with #2938 (69485a86). Win64 under Wine 11.22 / VKD3D-Proton 3.1.0, RTX 4070 SUPER (620.73.4) and Radeon RADV (26.3.1).On each adapter, the unmodified
a_mesh_pipeline_loads_from_the_libraryfailed 3/3 on main and 3/3 with #2938 alone after both PSO requests returned. A diagnostic loggedCreatePipelineLibraryreturningE_INVALIDARGfor the empty library, before load or store. The stockpipeline::library::testsalso had exactly one failure under both trees,a_rejected_blob_gives_an_empty_library.This PR alone and the combined tree each passed 3/3 mesh-library runs and 7/7 stock library tests on each adapter, with no skips. The existing GPU mesh test reaches the production
opencall and checks that the second request actually loads from the library, which complements the pointer helper’s unit test on Wine. This run covers an empty library and in-process reuse.MEASURED with synthetic shader inputs, OpenAI Codex and a separate read-only review.
@kuzeyc on GitHub · 2026-12-01 21:19 UTC · original
Thanks @KelboLive, all three done in
f4ae7b922:origin/maininto the branch (c3ecaa558), no conflicts, so the d3d12 cargo-test CI from #2648 should now run. Merged rather than rebased, per the maintainer guide (no rebase, no force-push).tests/replay.rs: the empty library there now goes through the vtable withnulland 0, the same aspipeline::library(f4ae7b922).a_frame_is_recorded_and_replayedpasses under Wine 11.23.an_empty_blob_is_given_as_a_null_pointeronly pins the helper. The check thatopenuses it is the existing GPU testa_mesh_pipeline_loads_from_the_library, which goes through the realopen: per merzleckeier's run above it fails 3/3 on main and passes 3/3 with this PR on both an RTX 4070 SUPER and RADV under VKD3D-Proton. Puttingbytes.as_ptr().cast()back at the call site would fail it there, though not on native D3D12. If you'd still like a seam that checks the pointeropenpasses without a GPU, say so and I'll add it.pipeline::libraryis 7/7 under Wine on the merged tree. AI-assisted (Claude Code).@deynesdev on GitHub · 2026-12-02 07:10 UTC · original
Tested on Linux/NVIDIA:
f4ae7b922merged (locally, nothing pushed) intomainf37c4a87d, against plainf37c4a87d. Same save, same settings (scripts/play-linux.shdefaults,LEONIDA_SKIP_BINK=1), shader cache already translated for this build (leonida shaders).Setup: RTX 4050 Laptop 6 GB, NVIDIA 580.196.07, Fedora 44, Wine 11.21 Staging, VKD3D-Proton 3.2.0 (
71cae091b06571e+). Built with--target x86_64-pc-windows-gnullvm(not the msvc route).mainf37c4a87dno host pipeline library: pipelines are not kepthost pipeline library saved, 331,640 bytes, made=1728cache/pipelines/early-pipelines.txtleonida warm --used83670 pipelines known ... 0 to make1828 to make,1828 made in 186 s, 0 badSo on Wine/VKD3D-Proton the empty-library refusal does not only lose the library:
savereturns beforeearly-pipelines.txtis written, which leaveswarm --usedwith nothing to make on every Linux setup. This PR fixes both here. One run per row; themain"next start" run had the driver's own cache warm from an earlier run, not a library.AI-assisted: yes (Claude Code, Claude Opus 5.5): the runs, logs and this comment.
@Kal0s-design on GitHub · 2026-12-02 14:24 UTC · original
Ran natively on Windows 11, head
f4ae7b922merged into currentmain(2fc7383b9, no conflicts), toolchain 1.98.1,--locked. The 7/7 native run above covers the unit tests. This one adds the debug layer, WARP, the rawCreatePipelineLibraryresults for each kind of blob, the serialised round trip of an empty library, and the empty-file paths.Tests on the merge
pipeline::library(7) +a_mesh_pipeline_loads_from_the_library+depth_bounds_pipeline_loads_and_filters_drawstests/replay.rsa_frame_is_recorded_and_replayedcargo test -p leonida-gpu --lib: 697 passed, 0 failed, 59 ignored. Clippy (--all-targets) reports nothing inlibrary.rsorreplay.rs.Native
CreatePipelineLibraryand the empty library (a throwaway test, not committed)This calls the vtable directly with each blob, then serialises the result.
S_OK, serialised size 900S_OK, 872main)S_OK, 900S_OK, 872CreatePipelineLibrary(&[])S_OKS_OKS_OK, same size, re-serialises to identical bytesE_INVALIDARGE_INVALIDARGE_INVALIDARGE_INVALIDARGSerializeinto a buffer one byte shortE_INVALIDARGE_INVALIDARGThe production
opengave a library in all three cases:Blob::None, a junk blob (it fell back to an empty one), and the serialised empty library (loaded as is, no fallback).So on native D3D12 the change makes no difference: the runtime accepts null and dangling alike, and the debug layer is silent on both. The bug can only be seen under VKD3D-Proton, which matches the earlier runs above. An empty library still serialises to a few hundred bytes, not 0.
savedoes not serialise at all whileadded == 0, andBlob::oftreats a 0-byte file as no file. So I found no path that writes, or chokes on, an empty library file.Not checked: Wine/VKD3D-Proton (covered above by others), AMD/Intel native drivers, a full save-and-reopen across two processes on native.
GPUs tested: one NVIDIA desktop card + WARP.
AI-assisted: yes (Claude Code).
@merzleckeier on GitHub · 2026-12-02 14:31 UTC · original · reviewed
Follow-up for the replay change in
f4ae7b92, merged locally ontomain69cd4106c. I ran the same MSVC-target tests under Wine 11.22 and VKD3D-Proton0bb64c56on Radeon Raphael (RADV 26.3.1) and RTX 4070 SUPER (620.73.4).A local smoke test called the existing
tests/replay.rs::meshhelper with synthetic HLSL and required the helper to store and reload its mesh PSO. On both GPUs it failed onmainatCreatePipelineLibrarywith0x80070057and passed with this PR. The stockpipeline::librarysuite passed 7/7 on each GPU. The existing rejected-blob and runtime mesh-reload tests also failed onmainand passed with the PR.The full replay test, with its SDK-dependent mesh path inactive, reached
recorder onandscene madeand then failed with the same Wine access fault on both revisions and GPUs. The isolated smoke test exercised the updated replay call with DXC available.git merge-treealso found no textual conflict with #3150 at6a5e5bcd. AI-assisted with OpenAI Codex.@MoonEyes on GitHub · 2026-12-02 18:01 UTC · original
Triage of head
f4ae7b922(merge base1fff69129, 334 commits behind;git merge-treeagainst currentmain45dc41f95: no conflicts).2 files:
pipeline/library.rs(+37/-3),tests/replay.rs(+15/-7).CI is at
action_requiredon this head (fork workflow approval).Existing verification: Verified by @merzleckeier (Wine/VKD3D-Proton, RTX and RADV), @z3r0rc (same fix landed independently), @deynesdev (Linux/NVIDIA in game on this head) and @Kal0s-design (native, debug layer, WARP, raw
CreatePipelineLibraryper blob kind).This check: Not re-reviewed in depth: the empty library is created from a null blob instead of an empty slice's dangling pointer, which VKD3D-Proton rejected. Root cause, small, verified on both Windows and Proton. It touches
library::open, notlibrary::pipeline, so it does not interact with #3185.I did not build it: the crate is Windows-only (or the C++ runtime's Windows build), so no red/green was run here.
Verdict: ready (root-cause fix verified natively and under Proton; needs CI approval).
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
@MoonEyes on GitHub · 2026-12-02 21:34 UTC · original
RUN (independent run on Windows, head
f4ae7b922bc591918b43c4761e69f77572a4c8ac, merged intomainb41763227aeed2d23c98af84bcbc1bddc7acdc90withgit merge --no-ff)PR #2654,
D3D12-VKD3D-EMPTY-PIPELINE-LIBRARY: the empty host pipeline library is created from a null blob (newblob_pointer()helper and a raw vtable call) instead of an empty slice's dangling pointer. It also logs a refused empty library, andtests/replay.rsmakes its library the same way. Two files, +52/-10.Merge: clean, no conflict. Toolchain from the repo,
--locked,--release, native Windows 11, one shared target directory, noleonida.exerunning during the builds.Green
cargo test -p leonida-gpu --release --locked --lib: 704 passed, 0 failed, 59 ignored. All 7pipeline::librarytests pass, including the newan_empty_blob_is_given_as_a_null_pointer.cargo test -p leonida-gpu --release --locked --features diagnostics --lib: 785 passed, 0 failed, 59 ignored. I ran this one becausetests/replay.rsis behindfeature = "diagnostics".cargo test -p leonida-gpu --release --locked --features diagnostics --test replay:a_frame_is_recorded_and_replayedpasses (1/1). Without the feature this file compiles to 0 tests.Red
The PR's only new test is in
library.rs, next to the code it tests. Checking out main'slibrary.rsremoves the test andblob_pointertogether, so it cannot go red that way. I mutated the new code instead, one change at a time, then restored the file withgit checkout HEAD --:blob_pointeralways returnsbytes.as_ptr()(the old behaviour)blob_pointer(&[]).is_null()(6 passed, 1 failed)openusesbytes.as_ptr().cast()instead ofblob_pointer(bytes)M2 is the gap KelboLive pointed out in review. The unit test checks the helper, not that
openuses it. The raw-vtable call also passes a dangling pointer without error on native D3D12, so no native test can see the bug. Only VKD3D-Proton refuses it.Review
d3d12/docs/switches.mddoes not need regenerating.makestill builds the library from the bytes kept beside it inLibrary. A null pointer with length 0 is only given for an empty blob.rawis wrapped byfrom_rawonly after.ok()?succeeded, so an error leaves nothing to release.blobis still dropped before the empty library is made. No fences are involved.docs/d3d12_vulkan.md(§ onCreatePipelineLibrary) already says a null pointer with a size isE_INVALIDARG. A null pointer with size 0 is the opposite case and is not recorded there. That is a docs gap, not a blocker.D3D12-VKD3D-EMPTY-PIPELINE-LIBRARYwith a link to a claim comment on issue 2570.replay.rschange KelboLive asked for is done (f4ae7b922). (3) Theuseless_ptr_null_checkswarning is fixed in55ac5d337.git merge-treeof this head against #2789 (stale library driver stamp) conflicts inpipeline/library.rs, so whichever lands second needs a small merge. Against #3185 and #3150 it is clean. #2569, which the body mentions, is closed.f4ae7b922): one by deynesdev, Linux, Wine 11.21 plus VKD3D-Proton 3.2.0, RTX 4050 Laptop. Onmain, "no host pipeline library: pipelines are not kept". With the PR, the library is saved (331,640 bytes) and loaded at the next start. Median fps in the last 20 lines is 12.4 for both. It is a Wine/Proton run, not a native Windows in-game run. Kal0s-design ran native Windows with the debug layer and WARP on a merge (f4ae7b922into2fc7383b9): 9/9 on card and WARP, with and without the debug layer. merzleckeier and z3r0rc report Proton runs on earlier heads.Not covered
E_INVALIDARGfrom a dangling pointer) cannot be reproduced on native D3D12, so my green run does not show the bug is gone. It shows nothing broke natively.Verdict
PARTIAL: green on the merge, and the new unit test is killed by 2 of 3 mutations. M2 survives (the call site's use of
blob_pointeris not asserted), and the real failure is only visible under VKD3D-Proton, where others have already confirmed it on this head. The fix is small and the code reads as correct. A conflict with #2789 inlibrary.rsis to be expected. In-game run still required on native Windows if the maintainers want one on this head; a Proton in-game run is already posted on this head.AI-assisted (Claude Code), models: Claude Opus 5.5 (checker), separate Claude Opus 5.5 judge.
@bercedev on GitHub · 2026-12-02 23:34 UTC · original
tested this merged onto main
ef35d683eon linux: proton experimental 11.0, vkd3d-proton master f8c1cae83, rtx 4050 laptop 6 gb, nvidia 620.73.04the fix does what it says. main logs "no host pipeline library: pipelines are not kept" on every start. with this the first launch started an empty library and saved it as it went (1327 made, 259 kb host-pipelines.bin), and the second launch logged "host pipeline library loaded" and loaded 1405 of 1418 early pipelines, with only 1 made fresh
it didn't take the long stalls away on this setup though. both launches still had 10-16 s present gaps in the world, and the median fps was lower than my main runs (7.8 to 9.0 against 12.2 to 13.6). those are single runs on a 6 gb card that's at its vram limit, so i wouldn't read the fps much, but whatever causes the 10 s waits here is not only the missing library
AI-assisted: yes (claude). runs played by me
@enlight3d on GitHub · 2026-12-03 00:54 UTC · original
RUN (in game, gate-style): head
f4ae7b922tested in a batch of nine pull requests: #2609 (3fbcacc4e), #2654 (f4ae7b922), #2686 (4ce795127), #2823 (854796496), #2841 (24ff8f24c), #2890 (262439781), #3154 (854fc3441), #2588 (598930e5b) and #3119 (6097c033c), merged in that order withgit merge --no-ffontomainf3865cae8. One conflict, in the credit table ofd3d12/README.mdwhen #2588 went in (both rows kept); no code conflict. Files touched by more than one of the nine:d3d12/docs/switches.md(#2686, #3119, #3154) andd3d12/README.md(#2588, #3119). Built withdiagnostics,mimalloc, targetx86_64-pc-windows-msvc. RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro (build 26300).Launcher defaults except
-PrecompileUsed, Series S settings,-NoDlss -NoFrameGen, standing at the save. On thismainthe launcher precompiles every recorded pipeline by default (88,671 here: a first warm-up with the plain defaults had made 9,000 of them after 660 s when it was stopped), so the runs use-PrecompileUsed(the 2,455 pipelines earlier runs drew with). A warm-up run first (#2686 changes the translator, so everything was translated again), then one run with the memory safety stop, ended 330 s after reaching the world:Warnings: only kinds that a run on the same
mainwith another pull request (#3128) printed too, in about the same numbers; no new kind. No pipeline refused other than the 29 "creation method that is not implemented" lines that run has as well. The last frame saved (8192) shows the world drawn normally.This pull request's own lines: on Windows with NVIDIA the host pipeline library loaded (477 MB, mapped) and was written at the end of the run, as on
main. The data folder already held a library, and the case this fixes (VKD3D-Proton refusing the empty blob) is not on this path; no "the host refused an empty pipeline library" line appeared.Verdict: PASS for the batch (a pass covers each of the nine; a failure would not have said which). Not covered here:
-RayTracing, DLSS and frame generation, other GPUs, Wine/Proton.AI-assisted: Claude Code (Claude Opus 5.5)
@fiestorra on GitHub · 2026-12-03 03:28 UTC · original
VERIFY-2654 — Windows nativo: 9 tests de
librarypasan, y el cambio es a mano por una razón concretaDos ficheros,
library.rs+40 ytests/replay.rs+22/−10, seis días abierto:El cambio, que es lo interesante: deja de llamar
device.CreatePipelineLibrary(bytes)y llama a la entrada de la vtable a mano:Y la razón está en el nombre de la función que aparece:
blob_pointer(bytes)— con un blob vacío tiene que pasarnull, y la envoltura dewindows-rsno ofrece esa forma:CreatePipelineLibrary(bytes)toma una slice, y una slice vacía produce un puntero no nulo con longitud cero, que es exactamente lo que el runtime rechaza.Así que el
vtablea mano es el precio de pasarnulldonde la API lo permite y la envoltura no. Es la clase de cambio que parece «bajar a la vtable por gusto» en un diff y es todo lo contrario — y el comentarioSAFETY:lo dice: "an empty blob is a null pointer (blob_pointer);rawis ours on success."Y
tests/replay.rscambia con él (22 líneas), que es donde el caso del blob vacío se ejerce de verdad — el test delibraryde arriba es el de la unidad.Lo que no probé: el caso concreto de
#…— un pipeline library con blob vacío contra VKD3D o contra el runtime de verdad, que necesita el título; aquí sólo compila y pasan los tests de la unidad.Written with an AI assistant.
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.