Skip to content

GPU: the host pipeline library works under Proton (null blob for an empty library) - #36

Open
LloydNicholson wants to merge 1 commit into
DexNom:mainfrom
LloydNicholson:dexnom/empty-pipeline-library
Open

LloydNicholson wants to merge 1 commit into
DexNom:mainfrom
LloydNicholson:dexnom/empty-pipeline-library

Conversation

@LloydNicholson

Copy link
Copy Markdown

Under Proton the host pipeline library was never made, so no pipeline was kept between runs.

An empty library is asked for with an empty Rust slice, whose pointer is dangling but not null. Windows looks at the length only; vkd3d-proton refuses a non-null blob of length 0 with E_INVALIDARG. The call now passes a null blob of length 0, and a refusal is logged with its error.

This is the same fix as Marvisak#1722.

Tested on Linux: Radeon RX 9060 XT (RADV), CachyOS Proton.

  • victory-gpu unit tests under Proton: main (2e01ab4) 187 passed, 1 failed (a_rejected_blob_gives_an_empty_library); with this change 188 passed, 0 failed.
  • Run in the game as part of a larger Linux branch on 921d8d3; frame rate was not measured for this change alone.

Not tested: Windows (no run and no build there; it was cross-built for x86_64-pc-windows-msvc from Linux), NVIDIA.

cargo clippy --workspace --all-targets --locked -- -D warnings, the same with --all-features, and cargo xtask policy are clean. No game data. AI-assisted.

🤖 Generated with Claude Code

An empty library is made with a null blob: vkd3d-proton refuses a non-null
blob of length 0, so no pipeline was ever kept. Ported from victory-fork
ea43d73 (cf. Marvisak#1722).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant