GPU: the empty host pipeline library is made from a null blob (vkd3d-proton refused it: no pipeline kept under Wine) #124
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!124
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-124"
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?
@sil-kong on GitHub · 2026-11-25 14:57 UTC · original
sil-kong:wine-pipeline-library→main· +16 −0 · 1 files · 1 commits · openWhat
library::openasks for an empty pipeline library withCreatePipelineLibrary(&[]). An empty Rust slice's pointer is not null (it is dangling,0x1), so the call passes a non-null blob with a length of 0. Windows' runtime accepts it; vkd3d-proton does not:(checked with a 20-line C program against vkd3d-proton from Proton Experimental, GE-Proton10-34's Wine, RADV.)
So under Wine/Proton the first run ever, and every run after it, logs
and since
savereturns when there is no library,early-pipelines.txtis never written either: no host pipeline is kept and no title pipeline is started early, on any run.The fix passes a null blob through the vtable when the bytes are empty. Non-empty blobs go through the same call as before, so Windows is unchanged.
Measured
Arch Linux, RX 7900 XT (RADV), Ryzen 9 5900X, same save and spot. With the fix, run 1 starts the library and saves it; run 2:
host pipeline librarySteady world frame times are unchanged (~620 ms/frame here); what changes is the backlog of compiles at world entry. One side effect I hit before the fix: with every pipeline compiled cold during the world load, a slow compile tripped the
endlesswatchdog and its draws were left out for the run (characters' skin, in my case).@TobiasFornell on GitHub · 2026-11-25 21:40 UTC · original
Confirming on another GPU/OS: CachyOS, RX 9070 XT (RDNA4, RADV), Proton Experimental, GTA VI 1.0.2.1 (offline).
With the null-blob change in place,
early-pipelines.txtis written and read back on the next run under vkd3d-proton. In one of my second-run logs the early-pipeline step ends withhost pipelines all made made=0 loaded=1153, i.e. everything came from the saved list and nothing had to be compiled at that point.I did not re-measure frame times or compare against a build without the fix; this is only a confirmation that the library persists and loads on RDNA4 as well.
@DecayingEagle on GitHub · 2026-11-27 10:44 UTC · original
Independent confirmation on
a-publier4eb6cfdf9e61cb112f1f811344ec0dd309eddd6c, using an equivalent local null-blob fix.Setup: RX 7900 XT, Mesa/RADV 26.3.1, CachyOS, Wine 11.22 with the mapped-view tree change, official vkd3d-proton
71cae091b06571e51446cf2a937f0b04c237c04d.A standalone D3D12 probe on this machine returned:
The same probe verified a 65,536-byte GPU upload/copy/readback, fence completion and a healthy device.
With the equivalent fix applied locally, the game saved and subsequently loaded the host library (
bytes=387512 mapped=true), and the next launch listed 2,212 title pipelines to start early.warm --usedalso completed 2,212 pipelines, with no missing host pipelines or failed worker processes. Both the release and diagnostic MSVC-target builds passed their version checks under Wine.This confirms cache persistence and prewarming on the current default branch. Steady-state frame-time effects were not isolated.
AI-assisted investigation and comment: OpenAI Codex. Measurements are from runs on this machine.
@BlueCatsz on GitHub · 2026-11-27 11:56 UTC · original
Confirmed working on a CachyOS / RDNA4 setup:
26.3.1, 32 GB DDR4proton-cachyos-slr(wine 11.0) + RB-treewineserver(CachyOS/wine-cachyos#50), officialvkd3d-proton(71cae09), native Microsoftd3dcompiler_47.dll,VKD3D_CONFIG=descriptor_heapdiagbuild ofa-publier(4eb6cfd) with#124(d6acf71) +#247+#541's moving-faces hunk, Series X profile (VICTORY_LAND_ECHO=0), retail 1.0.2.1Observed across three consecutive runs:
no host pipeline library yet; starting an empty one→ saved328,568 bytes(early=1856 made=1713 loaded=144 started_early=0)328,568 bytes(mapped=true) → saved345,272 bytes(early=1929 made=87 loaded=1878 started_early=1875)345,272 bytes(mapped=true) → saved346,040 bytes(early=1933 made=4 loaded=1930 started_early=1931)AI assistance disclosure: log extraction and test notes were compiled with AI assistance; all builds and hardware runs were executed and verified locally.
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.