gpu: pass null pointer for empty CreatePipelineLibrary (vkd3d-proton) #31
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/31"
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?
Imported from TaynanGT/Vice-Tay-v2. Originally posted by nullexxx on 2026-11-26T13:39:40Z.
@nullexxx on GitHub · 2026-11-26 13:37 UTC · original
nullexxx:fix/vkd3d-empty-pipeline-library→main· +14 −1 · 1 files · 1 commits · openSummary
When starting without an existing pipeline library,
CreatePipelineLibrary(&[])passes Rust's dangling non-null slice pointer (0x1) with length0. Windows ignores it, butvkd3d-protonrejects it withE_INVALIDARG(no host pipeline library: pipelines are not kept), preventing pipelines from persisting across runs under Wine/Proton.This passes
std::ptr::null()whenbytes.is_empty(), matching upstreamMarvisak/VIctorycommite5a8c2f(PR #994). Windows behavior is unchanged.Testing
cargo xwin build --target x86_64-pc-windows-msvc --locked --release -p victoryon CachyOS (Linux 7.3.6) and run underGE-Proton11-14(vkd3d-proton 3.2) on an RTX 5080 (620.73.04).WARN victory_gpu::pipeline::library: no host pipeline library: pipelines are not kepthost pipeline library saved bytes=318968 early=1848 made=7 loaded=1862 started_early=1873, and character models in cutscenes load from cache on subsequent launches.AI-assisted (Gemini) patch and log analysis; built and verified locally on my own copy.
Imported from TaynanGT/Vice-Tay-v2. Originally posted by mancube on 2026-11-26T14:41:31Z.
@mancube on GitHub · 2026-11-26 14:37 UTC · original
Confirmed tested on similar setup - CachyOS, vkd3d-proton, Proton11-14 with wineserver patch.
Imported from TaynanGT/Vice-Tay-v2. Originally posted by welisonzika14-jpg on 2026-11-26T15:40:08Z.
@welisonzika14-jpg on GitHub · 2026-11-26 15:35 UTC · original
Windows data for this PR, since it was only tried on Linux/Proton so far. RTX 5070 desktop (Blackwell, driver 621.24), Windows 11, Rust 1.98.1.
1. The call itself, on the native D3D12 runtime. A small standalone probe (windows crate 0.62.2, same as this tree) creates an
ID3D12PipelineLibrarythree ways, 2 runs each:maindoes; its pointer is0x1)So on Windows the native runtime accepts both forms, and the reload path is untouched. The
0x1pointer is only a problem for vkd3d-proton, which fits what you and @mancube saw.2. Unit tests.
cargo test -p victory-gpu -p victory-shader --lib --locked --no-fail-fastwith the PR merged ontofab5286: victory-gpu 347 passed / 0 failed, victory-shader 292 passed / 0 failed, the same asfab5286alone. The PR adds no test.Unit tests and a synthetic probe only, no game files.
Written with AI help (Claude/Kiro); the numbers are from runs on my machine.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.