Fix host pipeline caching on Wine #1

Merged
gmankab merged 1 commit from upstream-pr/1 into main 2026-11-25 12:59:52 +00:00
gmankab commented 2026-11-25 12:51:55 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by gmankab on 2026-11-25T12:51:55Z.


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: https://github.com/Marvisak/VIctory/pull/347
Tested-on: RX 6800, Fedora Linux 45, Wine and vkd3d-proton on RADV
Assisted-by: gpt-6.2 sol xhigh

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:6604900559 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/1). Originally posted by [gmankab](https://github.com/gmankab) on 2026-11-25T12:51:55Z. --- 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: https://github.com/Marvisak/VIctory/pull/347 Tested-on: RX 6800, Fedora Linux 45, Wine and vkd3d-proton on RADV Assisted-by: gpt-6.2 sol xhigh
PastiiJay commented 2026-11-25 12:59:54 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-25T12:59:54Z.


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).

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7163146219 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/1#issuecomment-7163146219). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-25T12:59:54Z. --- 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).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
PastiiJay/klbf-lab!1
No description provided.