Repository navigation
CLI: separate root-signature failures in victory translate --pipelines (#885) - #2157
fuzeofficlal wants to merge 1 commit into
Conversation
catminou4
left a comment
There was a problem hiding this comment.
Static review only: CLI/translate path — the shader crate half compiles on macOS but this PR's change is apps-side error reporting.
Distinguish root-signature vs wave-lane failures in translate output — error-message clarity; mixed apps+shader.
|
Checked the wave diagnostic against native Windows D3D12 on an RTX 3050 Laptop (driver 32.0.16.1062, 32-lane waves). I compiled three otherwise identical compute shaders with Windows SDK DXC 10.0.26100.0 (
This also checks the parser against PSV0 emitted by SDK DXC, independently of the project's own emitter. The measurement ends at |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f, cargo test -p victory-shader --locked.
144 passed / 0 failed / 2 ignored. translate errors distinguish root-signature vs wave-lane failures — shader crate side of the CLI diagnostics; apps half Windows-only.
From Marvisak/VIctory#2157 (GPL-3.0-or-later, fuzeofficlal), adapted to our tree (wave_lanes already returned Result, HostShader has min_lanes): - Surface D3D12SerializeVersionedRootSignature's diagnostic blob, and say when CreateRootSignature fails over the 64-dword root budget ("root signature: N dwords exceeds the 64-dword limit"). - `translate` keeps `root signature:` failures in their own bucket instead of prefixing `pipeline:`. - Report PSV0 wave-lane mismatches ("shader requires N-lane waves (device supports M)") before PSO creation, for compute, graphics and mesh. - Tests: PSV0 range parse, mismatch format, bucketing; the WARP pipeline check skips where the host has no SM 6.6 WARP device (this PC).
Offline measurement on a retail dumpResult: no count change against I merged head 9771cae onto No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right. No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
|
Automated triage for the maintainers. Merge candidate. Thanks for What it does, all in the offline
The tests check both buckets, plus a real over-budget signature on WARP. CI Generated by Claude Code |
9771cae to
c0b8b72
Compare
|
Updated in
|
c0b8b72 to
b0fbe25
Compare
|
Automated triage for the maintainers, second look (a review against current Closing because no title program fails at root-signature creation on If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
Summary
Separates root-signature serialization and creation failures from
Create*PipelineStaterejections invictory translate --pipelines(#885):emit::host::Host::root_signature_for(crates/victory-shader/src/emit/host.rs) prefixesD3D12SerializeVersionedRootSignatureandCreateRootSignaturefailures withroot signature:, surfaces the serializer's error blob message (blob_err), and notes when the root-parameter dword total (user_data_dwords().max(1)per stage +2 * views.len()) exceeds the 64-dword D3D12 root-signature budget on serializer errors while preserving the driver's own error onCreateRootSignature.pipeline_failure(apps/victory/src/translate.rs) keepsroot signature:failures in their own tally bucket rather than prefixing them withpipeline:, so0x80070057(E_INVALIDARG) from root-signature creation is not conflated with PSO rejection.Verification
cargo test -p victory-shader --lib --locked -- hostcargo test -p victory --lockedcargo clippy --workspace --lib --tests --all-features --locked -- -D warningscargo xtask policyRefs #885