GPU: pass null for empty D3D12 pipeline libraries on Proton #884
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/885"
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 Filip722 on 2026-11-25T11:46:44Z.
vkd3d-proton rejects a non-null pointer paired with a zero-length initial pipeline-library blob. When an existing blob is rejected, VIctory retries with an empty slice and can lose use of the native pipeline cache for the entire run.
This ports AugustoZFJ’s null-pointer call for an empty library to the fork’s current library structure. Nonempty initial blobs keep the existing call. Upstream PR #347
Validation
cae8353ed7959c4+.f85101band both passed with this port. The mesh fixture checks the actual library load counter on the second request.Ported, tested and drafted with OpenAI Codex (GPT-6.2-Sol High) assistance. The commit preserves the upstream patch author.
Refresh against fork main
Commit
ec90a68brings inc36971band keeps main's rename of a rejected library before creating the empty library. On the RTX 5060 Laptop GPU under GE-Proton 11-14, the Windows MSVC release build passed all 4 pipeline-library tests (including rejected-blob fallback) and the mesh pipeline cache-hit test. The full asset policy passed for 185 files. This refresh used synthetic tests. OpenAI Codex (GPT-6.2-Sol High) resolved the conflict and ran the retest.Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-25T12:28:02Z.
Confirmed the rejected-blob fallback independently on a desktop RTX 4060 (NVIDIA 620.73.4, GE-Proton 11-14). I cross-built the unmodified
victory-gpurelease tests with Rust 1.97.1 forx86_64-pc-windows-gnullvm, using separate build directories and separate copies of the same initialized prefix. Both runs initialized vkd3d on the hardware adapter.--exact pipeline::library::tests::a_rejected_blob_gives_an_empty_library:f85101bexpect("an empty library"), exit 101caf5cd2This matches the fallback result on the author's 5060 Laptop. Both of our earlier 180 s Series S runs logged
no host pipeline library: pipelines are not kept, regardless of physical backing mode. Those are pre-fix observations, not a retail A/B of this PR. I didn't test mesh cache hits, frame time, or a world frame here. The diff also passesgit apply --checkona253706.AI disclosure: Hermes Agent ran the comparison and wrote this comment for ArturoWolff.
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-26T03:40:16Z.
I refreshed this branch against
db53666in664a251. The change preserves main’s rejected-library rename before retrying with a null pointer for the empty blob.Matched Windows MSVC release tests on Bazzite 44, GE-Proton 11-14 and an RTX 5060 Laptop GPU (NVIDIA 615.78.08, vkd3d-proton
cae8353ed7959c4+) reproduced both failures on main. The rejected-blob fallback failed in the library suite, and the mesh test missed the second-request cache hit. With the fix, all four library tests and the mesh cache-hit test passed. The repository asset-policy check passed for all 208 files.OpenAI Codex (GPT-6.2-Sol High) assisted with the merge and retest.
Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-26T04:16:06Z.
Follow-up to the earlier RTX 4060 fallback test and Filip722's refresh: the null-pointer construction also restores actual native pipeline reuse across two retail processes on our low-memory Proton receiving build. It does not by itself restore the world or establish a frame-rate gain.
Receiver and scope. RTX 4060 desktop, 8 GB VRAM / 16 GB host RAM, Linux, NVIDIA 620.73.04, GE-Proton 11-14, vkd3d-proton
71cae091b06571e. Windows GNU-LLVM release cross-build, Rust 1.98.1, diagnostics. I used the private51700c6d-based integration from our earlier paired-wave test, with the later local texture fixes and fair-order adaptation, and the generation observer off. The prior two retail executions of that receiver both loggedthe host makes no pipeline library(0x80070057) andno host pipeline library: pipelines are not kept by us. I adapted only the empty-library production hunk of AugustoZFJ's197c7acf(Marvisak/VIctory#347), as ported incaf5cd2and retained by Filip722's refresh664a251. The receiver's nonempty-blob path, rejected-file rename, mapping ownership and save synchronization are unchanged. Matching GPL-3.0 license files. This is not a test of the entire refreshed PR head or current fork main.Synthetic hardware regression (same two fixtures before and after, separate build directories, guarded private display, actual RTX 4060 selected in both test processes). The local fixture adaptation requires a real device instead of returning early and compiles the existing synthetic mesh/pixel HLSL through the receiver's DXC DLL helper rather than
dxc.exe, which is not installed here.pipeline::library::tests::a_rejected_blob_gives_an_empty_libraryan empty library, test exit 101pipeline::host::tests::a_mesh_pipeline_loads_from_the_libraryTwo executed tests per build, no skip on the after run. Each after test reported 1 passed, 0 failed, 0 ignored. This expands the older fallback-only result on this card to the mesh-library path in the actual receiving integration.
Native-library-only warm replay: same fixed executable in both arms; Series X, 1920x1080 private display, file backing, paired waves, levels on demand and fair ordering as in the previous receiving run. Original starting Wine prefix, saves, title cache (including the 1,662-entry early list) and driver cache were byte-matched. For the second arm I copied only the first arm's final 294,584-byte native library into a new copy of that original seed, not its updated early/shader/driver caches. Each run received one A at the visible account picker and ended on the scheduled ~335 s bound with the host-memory guard enabled. No host OOM, unhandled exception, or logged device loss.
bytes=294584 mapped=truehost pipelines all made: made / loaded / started earlyThe warm process also saved a
host-pipelines.nextof 306,296 bytes while the original mapped file remained intact. The counts are the layer's native library events, not counts of unique console shaders. The first all-made message was later in the warm launch despite the hits: title progression and compilation scheduling vary. The first recognizable world frame appeared earlier in the warm display samples, but the scenes/input-to-scene timing are not deterministic enough to credit a speedup. Both launchers showed dark opening exterior geometry, and the warm run reached readable subtitles over very dark characters. Near the end both still reported roughly 0.2–0.3 FPS. No correctly lit world, gameplay control, or sustained FPS established. This is evidence for keeping the native pipeline cache enabled to remove repeated pipeline creation as a confound in the next Linux tests, not an estimate of steady-state gameplay performance. No title data, paths, binaries, or captures attached.AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T10:51:02Z.
I reproduced the empty-library failure in a second renderer with the same D3D12 call. The synthetic rejected-blob test and the mesh pipeline cache-hit test both failed on the control. Applying the null-argument change from this PR passed all six library tests and the mesh cache-hit test on the physical RTX 5060 Laptop GPU (8 GiB), Bazzite 44, NVIDIA 615.78.08, GE-Proton11-14, and vkd3d-proton 3.2.0 (
cae8353ed7959c4+).From empty caches the patched Series S launcher wrote a 68,600-byte host cache and 1,791 early keys. The same binary reopened the mapped cache on the next launch, read all 1,791 keys and reported 360 native library hits and 1,650 early starts before the run ended. Both patched title runs ended at the low-VRAM cutoff before a matched playable room capture, so this verifies persistence and reuse on Proton and leaves gameplay performance unmeasured.
Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T17:23:18Z.
Updated this branch for the NVIDIA-based main at
3e573d2. The unchanged Windows MSVC build under GE-Proton11-14 failed the existing rejected-blob fallback fixture on the physical RTX 5060 Laptop, with five other library tests passing. With the null-pointer fix, all six passed. The staged and full asset-policy checks also passed. This run used vkd3d-proton 3.2.0 and NVIDIA driver 615.78.08.Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by OctoAlgo on 2026-11-27T18:36:29Z.
Coverage from a second system for this change: RTX 5090 and RTX 5070 Ti, CachyOS, NVIDIA 620.73.04, Proton 11 with vkd3d-proton. I tested the same null-pointer, zero-length call in my own branch (#1494, now closed as a duplicate of this), not this branch itself.
no host pipeline library: pipelines are not kept.host pipeline library saved bytes=248, second startloaded bytes=248 mapped=true.Not tested: Windows, AMD.
(written with AI assistance)
Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-27T21:27:12Z.
Current-main follow-up: I applied the exact #885 delta (
f219179417ecf0d4d9c8585bcccefe91a19d3856against3e573d2) cleanly to2eade68cade9b2f8cd2511cc97328e83f58508c3with the identical #830 backing and #1489 DXC adaptations from our previous startup test. Credit to AugustoZFJ (Marvisak/VIctory#347) and Filip722 for the port. No additional rendering changes. RTX 4060 desktop, 8 GB VRAM / 16 GB RAM, NVIDIA 620.73.04, Linux with GE-Proton11-14 / vkd3d-proton 3.2.0 (cae8353ed7959c4+), locked release MSVC cross-build (Rust 1.98.1). Series X, 1080 scene request, 1920×1080 fullscreen client, 30 FPS cap, BVH and water lighting enabled, DXC 1.9.2609, mixed physical backing.The pre-fix build from the linked test reported
no host pipeline library: pipelines are not keptand saved no native library. I launched the new build twice, from independent copies of the same earlier retired profile with fresh external driver-cache directories. The second copy received only the first run's 25,016-byte nativehost-pipelines.bin, verified byte-for-byte by SHA-256 before launch; the early list and other caches were not copied from the first run..next, original mapped file retained)Both patched processes kept the earlier DXC fallback working (two fallback attempts; no clamp/compare failure warnings), and neither logged the missing native library warning. The cache counters demonstrate reuse across fresh retail processes, not unique shader counts. Both ended with a black loading transition and exit 5, without new OOM kills or recorded kernel GPU faults. The external memory guard was set at 256 MiB for both patched launches (512 MiB in the earlier control); none of these three launches reached either threshold. Neither patched run had a recorded manual/scripted input after the seed was loaded. No confirmed world frame, image quality, audio, or gameplay FPS improvement; one run per arm is not a loading-time benchmark. This is a current-main integration confirmation of cache persistence/reuse, not a new claim that the cache alone solves the title failure.
AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-28T18:36:35Z.
Verified on rebased
main368967f+ #885 (f219179) on CachyOS Linux (Ryzen 7 9800X3D, RTX 5080 16 GB620.73.04,GE-Proton11-14/vkd3d-proton, Series X profile,releasebuild):pipeline::library::tests:::6 passed; 0 failed(0.58s, includinga_rejected_blob_gives_an_empty_library).host-pipelines.bin(133 KB,early=1914,made=1771), zerono host pipeline librarywarnings.loaded=908pipelines directly fromhost-pipelines.bin(started_early=1947, updatedhost-pipelines.binsaved atbytes=143096,early=2008).(AI-assisted testing, log analysis, and summary.)
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.