Fix mesh pipeline test on unsupported GPUs (issue #4) #181

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

@⁠AndradeTK on GitHub · 2026-11-24 22:17 UTC · original
AndradeTK:fix/mesh-pipeline-test-and-mesh-psv → main · +7 −0 · 1 files · 1 commits · open

a_mesh_pipeline_loads_from_the_library now skips when the host lacks mesh shader support (the same check production code uses) and disables depth testing for the color-only target, which has no depth plane; otherwise CreatePipelineState returns E_INVALIDARG, which is what #4 reported on an RTX 5080. Verified locally: victory-gpu lib tests 110 passed, 0 failed, 1 ignored; clippy clean.

The mesh PSV name-offset idea (issue #12) is intentionally NOT included: it cannot be validated without game data or the D3D12 validator on real mesh shaders, so it stays out until it can be tested.

**@⁠AndradeTK** on GitHub · 2026-11-24 22:17 UTC · [original](https://github.com/fxceless/victory-fork/pull/181) `AndradeTK:fix/mesh-pipeline-test-and-mesh-psv` → `main` · +7 −0 · 1 files · 1 commits · open a_mesh_pipeline_loads_from_the_library now skips when the host lacks mesh shader support (the same check production code uses) and disables depth testing for the color-only target, which has no depth plane; otherwise CreatePipelineState returns E_INVALIDARG, which is what #4 reported on an RTX 5080. Verified locally: victory-gpu lib tests 110 passed, 0 failed, 1 ignored; clippy clean. The mesh PSV name-offset idea (issue #12) is intentionally NOT included: it cannot be validated without game data or the D3D12 validator on real mesh shaders, so it stays out until it can be tested.
a_mesh_pipeline_loads_from_the_library now skips when the host lacks mesh
shader support (the same check production code uses) and disables depth
testing for the color-only target, which has no depth plane; otherwise
CreatePipelineState returns E_INVALIDARG, which is what #4 reported on an
RTX 5080. Verified locally: victory-gpu lib tests 110 passed, 0 failed,
1 ignored; clippy clean.

The mesh PSV name-offset idea (issue #12) is intentionally NOT included:
it cannot be validated without game data or the D3D12 validator on real
mesh shaders, so it stays out until it can be tested.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:37:42 +00:00
@ -915,1 +919,4 @@
g.targets.RTFormats[0] = DXGI_FORMAT_R8G8B8A8_UNORM;
// The test's target has no depth plane, so the state must not ask
// for one: a depth test against an absent depth format is refused.
g.depth.DepthEnable = false.into();
Author
Owner

@⁠Copilot on GitHub · 2026-11-24 22:19 UTC · original

The failure shown in #4 is an unwrap of Result<(ID3D12RootSignature, Vec<u8>)>, identifying the root_signature(...) call above rather than CreatePipelineState. On a host that passes the new capability check, that call still runs before this depth-state change, so this does not address the reported root-signature error. Please investigate that failure on the reported setup, or narrow the PR description to distinguish this separate pipeline-state fix from #4.

**@⁠Copilot** on GitHub · 2026-11-24 22:19 UTC · [original](https://github.com/fxceless/victory-fork/pull/181#discussion_r4687318155) The failure shown in #4 is an unwrap of `Result<(ID3D12RootSignature, Vec<u8>)>`, identifying the `root_signature(...)` call above rather than `CreatePipelineState`. On a host that passes the new capability check, that call still runs before this depth-state change, so this does not address the reported root-signature error. Please investigate that failure on the reported setup, or narrow the PR description to distinguish this separate pipeline-state fix from #4.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/pipeline/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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