[pr-fix][linux-proton] The rebuilt pipeline library starts from a null blob, which vkd3d-proton accepts #348
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!348
Loading…
Reference in a new issue
No description provided.
Delete branch "ntsthay/library-rebuild-empty"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The problem shows in game logs. The fix was not run in the game.
Contributor role (optional)
What it changes
rebuild, which compacts the host pipeline library, made its new empty library withCreatePipelineLibrary(&[]). 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_emptyandmakein the same file already avoid this. So under Proton the library is never rebuilt. My game logs fromf3840d7show 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.
rebuildnow callsmake(device, &[]), which passes a null pointer for an empty blob. On Windows the result is the same empty library.How it was tested
c9cdcdc, this branch onf3840d7.cargo nextest run -p darner-gpu -E 'test(/pipeline::library::/)'under Proton (proton-cachyos, RTX 4080): 30 passed. Onf3840d7,a_rebuilt_library_holds_the_pipelines_it_was_givenfails atrebuildwithHRESULT(0x80070057).f3840d7.Checklist
main.docs/asset-policy.md.Checked for overlap
Windows compatibility check for
c9cdcdcagainstf3840d7: a standalone fixture used the exactrebuildimplementations and the productionmakehelper 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.