Repository navigation
Fix host pipeline caching on Wine - #1
Merged
Merged
Conversation
An empty slice still has an address, and vkd3d-proton answers E_INVALIDARG to a non-null blob of length 0, so under Wine no pipeline library was ever created and host pipelines were not kept.
Owner
|
Thank you @gmankab, clean fix and well measured. Merged into main; it will also go into the next test build on KLBF Lab Beta. Credits to AugustoZFJ for the original fix (Marvisak/VIctory#347). |
BrokeAsh
pushed a commit
to BrokeAsh/klbf-lab
that referenced
this pull request
Nov 25, 2026
…astiiJay#1) Co-authored-by: ZazaJr24 <218105339+ZazaJr24@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Wine with vkd3d-proton, opening a fresh host pipeline library with a zero-length Rust slice passes a non-null blob pointer. vkd3d rejects it, and KLBF continues compiling pipelines without a host library to save for the next run.
This carries AugustoZFJ's null-blob fix over to KLBF's current pipeline library. It preserves the file-mapping and save logic and only changes how an empty library is created.
On an empty cache, the original prebuild attempted 1,428 pipelines before I stopped it and created no host pipeline library. With the fix, the first batch saved 220 pipelines and reopened the library. Further batches reported library hits.
Based-on: Marvisak/VIctory#347
Tested-on: RX 6800, Fedora Linux 45, Wine and vkd3d-proton on RADV
Assisted-by: gpt-6.2 sol xhigh