fix: pass a null pointer on an empty blob for proton compatibility #311

Open
github-bot wants to merge 1 commit from github-bot/gh-311 into main AGit
Owner

@⁠corp-0 on GitHub · 2026-11-27 20:55 UTC · original
corp-0:fix/pipeline-library-empty-blob → main · +20 −1 · 1 files · 1 commits · open

vkd3d-proton rejects CreatePipelineLibrary with a non-null pointer and
zero length (E_INVALIDARG), and a Rust empty slice's pointer is never
null. Under Proton the empty library was never created, so no pipelines
were kept and the early-start list was never written: every run
recompiled all pipelines at first draw.

Windows is unaffected by this change.

**@⁠corp-0** on GitHub · 2026-11-27 20:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/311) `corp-0:fix/pipeline-library-empty-blob` → `main` · +20 −1 · 1 files · 1 commits · open vkd3d-proton rejects CreatePipelineLibrary with a non-null pointer and zero length (E_INVALIDARG), and a Rust empty slice's pointer is never null. Under Proton the empty library was never created, so no pipelines were kept and the early-start list was never written: every run recompiled all pipelines at first draw. Windows is unaffected by this change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:01:14 +00:00
Author
Owner

@⁠1tsethan on GitHub · 2026-11-27 23:01 UTC · original

Independent Windows validation of PR #311.

Tested commit: dad5e48913cb63a34dac6d56c284c04c186eeacf.

cargo test --locked -p victory-gpu pipeline::library -- --nocapture --test-threads=1

Exit: 0.

  • test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 453 filtered out; finished in 1.73s

Coverage here is native Windows pipeline-library tests. Proton behavior remains untested; no Linux/Wine environment is available.

Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result.

**@⁠1tsethan** on GitHub · 2026-11-27 23:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/311#issuecomment-7229805624) Independent Windows validation of PR #311. Tested commit: `dad5e48913cb63a34dac6d56c284c04c186eeacf`. `cargo test --locked -p victory-gpu pipeline::library -- --nocapture --test-threads=1` Exit: **0**. - test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 453 filtered out; finished in 1.73s Coverage here is native Windows pipeline-library tests. Proton behavior remains untested; no Linux/Wine environment is available. Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result. <!-- victory-native-validation-20261128 -->
This pull request can be merged automatically.
This branch is out-of-date with the base branch
The changes on this branch are already on the target branch. This will be an empty commit.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/311/head:github-bot/gh-311'
git switch 'github-bot/gh-311'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-311'
git switch 'github-bot/gh-311'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-311'
git switch 'github-bot/gh-311'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-311'
git switch 'main'
git merge --squash 'github-bot/gh-311'
git switch 'main'
git merge --ff-only 'github-bot/gh-311'
git switch 'main'
git merge 'github-bot/gh-311'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.