[pr-fix][linux-proton] The rebuilt pipeline library starts from a null blob, which vkd3d-proton accepts #348

Manually merged
TrustNo1 merged 1 commit from ntsthay/library-rebuild-empty into main 2026-12-05 04:49:30 +00:00 AGit
Contributor

The problem shows in game logs. The fix was not run in the game.

Contributor role (optional)

  • Fluxer ID:

What it changes

rebuild, which compacts the host pipeline library, made its new empty library with CreatePipelineLibrary(&[]). An empty Rust slice has a pointer that is not null, and vkd3d-proton refuses a zero-length blob at a pointer that is not null. null_when_empty and make in the same file already avoid this. So under Proton the library is never rebuilt. My game logs from f3840d7 show it each time a run qualified:

WARN darner_gpu::pipeline::library: host pipeline library not rebuilt; saved whole error=Parâmetro inválido. (0x80070057)

That library is now 5.4 GB and only grows.

rebuild now calls make(device, &[]), which passes a null pointer for an empty blob. On Windows the result is the same empty library.

How it was tested

  • Tested revision: c9cdcdc, this branch on f3840d7.
  • Commands and results: cargo nextest run -p darner-gpu -E 'test(/pipeline::library::/)' under Proton (proton-cachyos, RTX 4080): 30 passed. On f3840d7, a_rebuilt_library_holds_the_pipelines_it_was_given fails at rebuild with HRESULT(0x80070057).
  • Gates 1 and 2 are clean. Gate 3 ran under Wine, not on Windows.
  • Gameplay: not run with the fix yet. The failure is from game logs on f3840d7.
  • Coverage gaps: no game run with the fix; no run on Windows.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found
The problem shows in game logs. The fix was not run in the game. ## Contributor role (optional) - Fluxer ID: ## What it changes `rebuild`, which compacts the host pipeline library, made its new empty library with `CreatePipelineLibrary(&[])`. An empty Rust slice has a pointer that is not null, and vkd3d-proton refuses a zero-length blob at a pointer that is not null. `null_when_empty` and `make` in the same file already avoid this. So under Proton the library is never rebuilt. My game logs from `f3840d7` show it each time a run qualified: `WARN darner_gpu::pipeline::library: host pipeline library not rebuilt; saved whole error=Parâmetro inválido. (0x80070057)` That library is now 5.4 GB and only grows. `rebuild` now calls `make(device, &[])`, which passes a null pointer for an empty blob. On Windows the result is the same empty library. ## How it was tested - Tested revision: `c9cdcdc`, this branch on `f3840d7`. - Commands and results: `cargo nextest run -p darner-gpu -E 'test(/pipeline::library::/)'` under Proton (proton-cachyos, RTX 4080): 30 passed. On `f3840d7`, `a_rebuilt_library_holds_the_pipelines_it_was_given` fails at `rebuild` with `HRESULT(0x80070057)`. - Gates 1 and 2 are clean. Gate 3 ran under Wine, not on Windows. - Gameplay: not run with the fix yet. The failure is from game logs on `f3840d7`. - Coverage gaps: no game run with the fix; no run on Windows. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found
Contributor

Windows compatibility check for c9cdcdc against f3840d7: a standalone fixture used the exact rebuild implementations and the production make helper on the DXGI WARP software adapter. Both revisions kept one synthetic compute pipeline, counted one duplicate, and refused zero. Both serialized a 1,832-byte library and loaded the named pipeline after reopening it.

That checks the Windows path with the null empty blob. The failing-before evidence under Proton is from the author's run.

Windows compatibility check for `c9cdcdc` against `f3840d7`: a standalone fixture used the exact `rebuild` implementations and the production `make` helper on the DXGI WARP software adapter. Both revisions kept one synthetic compute pipeline, counted one duplicate, and refused zero. Both serialized a 1,832-byte library and loaded the named pipeline after reopening it. That checks the Windows path with the null empty blob. The failing-before evidence under Proton is from the author's run.
TrustNo1 manually merged commit 55ca6d7f9e into main 2026-12-05 04:49:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!348
No description provided.