GPU: say which part of a refused mesh pipeline the driver refuses #436
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by sennecools on 2026-11-25T00:49:16Z.
Without 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.
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:52:58Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
0f1d56b6ebℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:49:28Z.
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.
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:52:58Z.
Code review location:
crates/victory-gpu/src/pipeline/host.rs; line 854For 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 👍 / 👎.
Imported from fxceless/victory-fork. Originally posted by sennecools on 2026-11-25T02:05:27Z.
Review: COMMENTED
No description provided.
Imported from fxceless/victory-fork. Originally posted by sennecools on 2026-11-25T02:05:27Z.
Code review location:
crates/victory-gpu/src/pipeline/host.rs; line 854Thanks 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
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.