gpu: bootstrap native pipeline libraries with a null empty blob on Wine #66

Closed
github-bot wants to merge 1 commit from gh-pr/66/head into gh-pr/66/base
Owner

@⁠pickles976 on GitHub · 2026-11-30 00:44 UTC · original
pickles976:wine-pipeline-library → main · +42 −8 · 1 files · 1 commits · closed without merging

Problem

On Linux/Proton with native vkd3d-proton, the empty &[] passed through the windows-rs CreatePipelineLibrary wrapper is non-null even though its length is zero. Both unmodified v0.8.1 title runs logged no host pipeline library: pipelines are not kept; every launch loses the native-library bootstrap/reuse path.

Current upstream main 39e33eb0421d3f905d2821ecda56fd200f86431b still contains the same make(&[]) bootstrap.

Change and credit

Port the null-pointer/zero-length bootstrap from canonical VIctory #1722, commit ee84a44859d4384ea5b945fa59e09ad9f9ac8d61. Keep nonempty/mapped-blob ownership and static-sampler exclusions unchanged. Report the HRESULT if cold creation fails.

Strengthen the existing regression: require a real host, create from both absent and rejected blobs, serialize, and reopen the resulting valid blob without falling back to an empty library.

Verification

Base: Foxhound v0.8.1 6c67166d447ca6c8b3f61cbf4c5da0c75dcf75f3; one production-file change.

  • Ryzen 7 5700X, RTX 3070 8 GiB, 64 GB system RAM; Ubuntu 24.04.2 / kernel 7.0.0-43, NVIDIA 595.99.02.
  • Proton Experimental experimental-11.0-20261112-x86_64, stock vkd3d-proton 3.2.0 2576c0b4adfae4a; NVIDIA ICD, native d3d12/dxgi/compiler DLLs. Private Wine server additionally carries upstream memory-view rbtree commit 3217449b; not pristine Proton certification.
  • Windows-MSVC target, Rust 1.98.1 / Clang 19.1.1: pipeline::library::tests:: 7 passed, 0 failed, 0 ignored, 1.37 s. Native library operations, not shader-dispatch coverage.
  • Fresh optimized diagnostics title build creates and saves a 107192-byte native library, logging 1435 made / 113 loaded. No pipelines are not kept message.

The title observation also disabled optional first-picture holding and used a different build profile from the published fat-LTO executable. It showed badly lit cutscene imagery at roughly 1 FPS, then reached the unchanged global-VRAM guard. This is not a matched performance comparison, a black-screen cure, stable gameplay or a 30-FPS claim.

Local evidence retained: foxhound-library-tests/desktop-guard-20261130T002433Z-49527-3f08766b45f54701949714a9cf5eb723/ and title trial desktop-guard-20261130T002645Z-51755-780a970a6f8b48f5a24b8cc6e0ffbec2. No title assets, saves, images, raw memory or credentials included.

**@⁠pickles976** on GitHub · 2026-11-30 00:44 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/66) `pickles976:wine-pipeline-library` → `main` · +42 −8 · 1 files · 1 commits · closed without merging ## Problem On Linux/Proton with native vkd3d-proton, the empty `&[]` passed through the windows-rs `CreatePipelineLibrary` wrapper is non-null even though its length is zero. Both unmodified v0.8.1 title runs logged `no host pipeline library: pipelines are not kept`; every launch loses the native-library bootstrap/reuse path. Current upstream main `39e33eb0421d3f905d2821ecda56fd200f86431b` still contains the same `make(&[])` bootstrap. ## Change and credit Port the null-pointer/zero-length bootstrap from [canonical VIctory #1722](https://github.com/Marvisak/VIctory/pull/1722), commit `ee84a44859d4384ea5b945fa59e09ad9f9ac8d61`. Keep nonempty/mapped-blob ownership and static-sampler exclusions unchanged. Report the HRESULT if cold creation fails. Strengthen the existing regression: require a real host, create from both absent and rejected blobs, serialize, and reopen the resulting valid blob without falling back to an empty library. ## Verification Base: Foxhound v0.8.1 `6c67166d447ca6c8b3f61cbf4c5da0c75dcf75f3`; one production-file change. - Ryzen 7 5700X, RTX 3070 8 GiB, 64 GB system RAM; Ubuntu 24.04.2 / kernel 7.0.0-43, NVIDIA 595.99.02. - Proton Experimental `experimental-11.0-20261112-x86_64`, stock vkd3d-proton 3.2.0 `2576c0b4adfae4a`; NVIDIA ICD, native d3d12/dxgi/compiler DLLs. Private Wine server additionally carries upstream memory-view rbtree commit `3217449b`; not pristine Proton certification. - Windows-MSVC target, Rust 1.98.1 / Clang 19.1.1: `pipeline::library::tests::` **7 passed, 0 failed, 0 ignored**, 1.37 s. Native library operations, not shader-dispatch coverage. - Fresh optimized diagnostics title build creates and saves a 107192-byte native library, logging 1435 made / 113 loaded. No `pipelines are not kept` message. The title observation also disabled optional first-picture holding and used a different build profile from the published fat-LTO executable. It showed badly lit cutscene imagery at roughly 1 FPS, then reached the unchanged global-VRAM guard. This is **not a matched performance comparison, a black-screen cure, stable gameplay or a 30-FPS claim**. Local evidence retained: `foxhound-library-tests/desktop-guard-20261130T002433Z-49527-3f08766b45f54701949714a9cf5eb723/` and title trial `desktop-guard-20261130T002645Z-51755-780a970a6f8b48f5a24b8cc6e0ffbec2`. No title assets, saves, images, raw memory or credentials included.
Port the Wine-compatible empty-library creation from canonical VIctory #1722, commit ee84a44859d4384ea5b945fa59e09ad9f9ac8d61.
Retain existing mapped/nonempty blob ownership and static-sampler exclusions. Require native cold/rejected creation, serialization and valid reopening in the existing regression.
Verified pipeline::library::tests:: under Proton/vkd3d: 7 passed, 0 failed, 0 ignored. A local RTX 3070 title run now persists its native pipeline library; no gameplay or FPS claim.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 02:24:07 +00:00
github-bot closed this pull request 2026-11-30 02:24:07 +00:00
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-11-30 02:14 UTC · original

Ported with credit in 113ac68. One change: the test returns early on a PC without a GPU (CI's runner has none) instead of failing; on a GPU it runs both cases, serializes and reopens the library as you wrote it. Checked on Windows 11 with an RTX 4070 SUPER: the test runs on the card and passes. Thanks.

**@⁠readmet3xt-lab** on GitHub · 2026-11-30 02:14 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/66#issuecomment-7266823400) Ported with credit in 113ac68. One change: the test returns early on a PC without a GPU (CI's runner has none) instead of failing; on a GPU it runs both cases, serializes and reopens the library as you wrote it. Checked on Windows 11 with an RTX 4070 SUPER: the test runs on the card and passes. Thanks.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.