Skip to content

P-9: Create empty host pipeline library on Wine - #58

Merged
ShinniUwU merged 2 commits into
ProjectLeonidaL:mainfrom
JohnReedV:codex/p9-wine-pipeline-library
Nov 26, 2026
Merged

ShinniUwU merged 2 commits into
ProjectLeonidaL:mainfrom
JohnReedV:codex/p9-wine-pipeline-library

Conversation

@JohnReedV

@JohnReedV JohnReedV commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On Wine/vkd3d, a first run cannot create the empty D3D12 pipeline library: the windows slice wrapper passes a non-null dangling pointer for &[], while vkd3d requires a null pointer with zero length. Leonida then runs without its host pipeline library and cannot keep compiled pipelines for later launches. The same backend incompatibility was reported in VIctory #844.

Change

Use the COM vtable call with a null blob pointer only for an empty library. Keep the existing slice call for nonempty saved libraries. Add a GPU regression test for a fresh empty library. P-9 was claimed in the first commit and removed from TODO after validation.

Validation

  • On Pop!_OS, RTX 5090, NVIDIA 580.173.02, Proton 11 Wine with vkd3d-proton 3.2 (ec20719452e916b), the new test failed before the change because the empty library could not be created. It passed after the change; all five focused pipeline-library tests passed.
  • A bounded offline title launch with this build created and saved a 248-byte host pipeline library containing one early pipeline. The next bounded launch loaded that same 248-byte library. These startup checks establish persistence; they do not measure frame-rate improvement.
  • Cross-compiled Windows release and test binaries with blake3/pure because the default BLAKE3 assembler writes to a read-only Cargo registry in this Linux sandbox. cargo xwin clippy -p leonida-gpu --all-targets --features blake3/pure --locked --offline --target x86_64-pc-windows-msvc -- -D warnings, cargo xtask policy, and git diff --check passed. Windows CI uses the normal build configuration.

No game data or raw title logs are attached. AI-assisted.

@JohnReedV
JohnReedV marked this pull request as ready for review November 26, 2026 22:40
@ShinniUwU
ShinniUwU merged commit f3c94ca into ProjectLeonidaL:main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants