GPU: ask for an empty pipeline library with a null blob #1494
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1494"
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?
Imported from fxceless/victory-fork. Originally posted by OctoAlgo on 2026-11-27T18:28:54Z.
What breaks under Proton. When there is no saved pipeline library yet,
openasks for an empty one withCreatePipelineLibrary(&[]). windows-rs passes an empty slice as a non-null address with length 0. D3D12 documents theempty form as a null pointer with length 0, and vkd3d-proton refuses the other form. So under Wine/Proton no library is
ever made, nothing is saved, and every start makes all of its pipelines again. The log says so on every start:
Change. The empty library is made through the vtable with a null blob (
empty). If the host refuses it anyway, theerror is logged instead of being dropped. A saved blob is loaded as before. A WARP test checks that the empty library is
made (on Windows; it skips where the adapter is not a software one).
Measured (RTX 5070 Ti, Proton 11 with vkd3d-proton, Series S profile, the same save, two starts in a row):
no host pipeline library yet; starting an empty oneand thenno host pipeline library: pipelines are not kept.no host pipeline library yet; starting an empty one, thenhost pipeline library saved bytes=248 early=1 made=1 loaded=0.host pipeline library loaded bytes=248 mapped=true; no "not kept".show the library being made, saved and loaded, not a warm world. The same change (identical calls) inside a larger local
test build reached the world on the RTX 5090, Series X: first start
saved bytes=107192/134840, next startloaded bytes=134840 ... loaded=552, i.e. the second start loads its pipelines instead of making them all again.Not tested: Windows (the change should be a no-op there; WARP test compiled, not run), AMD, other Proton builds.
The runs above were on
3e573d255; onf299fba1athe commit is unchanged and the Windows-target check (lib + tests) is clean, not re-run in game.Related. #259 and #1056 work around the same symptom by saving the early list when there is no library. This change makes the library itself work under vkd3d-proton, so the two approaches do not conflict.
(written with AI assistance)
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T18:31:33Z.
This overlaps #885, which is already updated for the rebased main and uses the same null-pointer and zero-length call. On the RTX 5060 Laptop under GE-Proton11-14, the original rejected-blob fallback test failed, and all six library tests passed with that change. Your cold-to-warm results add coverage from another system. Physical RTX test result
Assisted by Codex (GPT-6.2-Sol High).
Pull request closed