GPU: say which part of a refused mesh pipeline the driver refuses #436
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!436
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-436"
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?
@sennecools on GitHub · 2026-11-25 00:49 UTC · original
sennecools:contrib/mesh-refusal-reason→main· +162 −12 · 1 files · 1 commits · openWithout the debug layer the driver refuses a mesh pipeline with only E_INVALIDARG, which says nothing about the cause.
When a mesh pipeline is refused, it is now made again, outside the pipeline library, with one part of its description after another made neutral:
Each step keeps the earlier ones. The "host mesh pipeline refused" warning names the first part whose neutral form the driver accepts, and also gives the root parameter and static sampler counts and the state text. Only refused pipelines pay for the extra attempts; nothing changes for pipelines that are accepted.
Testing:
a_refused_mesh_pipeline_names_the_part_refused: breaks each part on purpose and checks the name, and checks a pixel shader that reads an input the mesh shader does not write. It skips without mesh shader support or without the PC dxc.exe, like the library test;cargo test -p victory-gpu --features victory-gpu/diagnosticson WARP: 120 passed (the mesh tests ran);AI-assisted.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:49 UTC · original · edited 2026-11-25 00:53 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
0f1d56bℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@ -788,0 +851,4 @@}s.targets = D3D12_RT_FORMAT_ARRAY::default();s.targets.NumRenderTargets = 1;s.targets.RTFormats[0] = DXGI_FORMAT_R8G8B8A8_UNORM;@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:52 UTC · original
For a pipeline with a valid
uintpixel output andR32_UINTRTV that is refused becausesamples.Count == 0, this probe fixes the sample count but introduces a new PS-output/RTV type mismatch by replacing the RTV with UNORM. That attempt still fails, while removing the otherwise-valid PS succeeds, so the warning incorrectly identifies the pixel shader/linkage instead of the sample-count/format state. Select neutral RTV formats compatible with the PS output signature, astarget_formatincrates/victory-shader/src/emit/host.rsdoes, and extend the sample-count test case to cover an integer-output PS.Useful? React with 👍 / 👎.
@ -788,0 +851,4 @@}s.targets = D3D12_RT_FORMAT_ARRAY::default();s.targets.NumRenderTargets = 1;s.targets.RTFormats[0] = DXGI_FORMAT_R8G8B8A8_UNORM;@sennecools on GitHub · 2026-11-25 02:05 UTC · original
Thanks for the review. I checked this: D3D12 does not refuse a pipeline whose pixel output type differs from the render target type (the result is undefined values, not an invalid pipeline). A pixel shader with an integer output and the neutral UNORM target is accepted (checked on WARP), so a pipeline refused only for its sample count is still reported as the target formats, depth format or sample count. No change needed.
AI-assisted.
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.Merge
Merge the changes and update on Forgejo.