CLI: separate root-signature failures in victory translate --pipelines (#885) #2155
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2157"
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 Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T06:29:41Z.
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
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T06:33:11Z.
Review: COMMENTED
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.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T06:49:58Z.
Review: APPROVED
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main
940d32f69b,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.
Imported from Marvisak/VIctory. Originally posted by Dathinel on 2026-11-25T06:38:11Z.
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 (
-T cs_6_6,[numthreads(64,1,1)], one UAV receivingWaveGetLaneCount()). All three embedded root signatures were accepted before checking pipeline creation.940d32f9771cae[WaveSize(32)][WaveSize(64)]El parámetro no es correcto.shader requires 64-lane waves (device supports 32)This also checks the parser against PSV0 emitted by SDK DXC, independently of the project's own emitter. The measurement ends at
Host::compute_pipeline_with; I didn't dispatch the shaders or attribute any of the failures in #885 to this cause. AI-assisted.Imported from Marvisak/VIctory. Originally posted by sinan-cmyk on 2026-11-25T08:09:25Z.
Offline measurement on a retail dump
Result: no count change against
main.I merged head
9771cae5ontomain940d32f(clean merge) and ranvictory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result withmainprogram by program (25,889 programs). Validated: 23,918 onmain, 23,918 with this PR.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).
[PR #2157] CLI: distinguish root-signature and wave-lane failures in translate --pipelinesto [PR #2157] CLI: separate root-signature failures in victory translate --pipelines (#885)Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T11:24:33Z.
Automated triage for the maintainers.
Merge candidate. Thanks for
c0b8b72. The PR is now limited to the root-signature part, so it no longer overlaps #223.What it does, all in the offline
victory translate/ test host (emit::host::Host,crates/victory-shader/src/emit/host.rs):root_signature_forprefixes serializer andCreateRootSignatureerrors withroot signature:, and surfaces the serializer's own error text (blob_err).CreateRootSignaturefailures keep the driver's message, as asked.user_data_dwords().max(1)per stage, plus 2 per root view.pipeline_failureinapps/victory/src/translate.rskeeps these errors out of thepipeline:bucket.The tests check both buckets, plus a real over-budget signature on WARP. CI
checkpasses atc0b8b72.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T12:00:26Z.
Updated in
c0b8b72cper triage feedback:psv_wave_range,wave_lane_mismatch,Host::wave_lanes,check_wave_lanes, and its tests) so this PR is focused solely on separatingroot signature:failures and avoids overlapping/conflicting with #223.CreateRootSignature(format!("root signature: {}", err(e))) without guessingdwords > 64there.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T22:12:00Z.
Automated triage for the maintainers, second look (a review against current
main, with builds and tests where they could change the verdict).Closing because no title program fails at root-signature creation on
main, and the failures it was written for (#885's 328 computeE_INVALIDARG) are the 64-lane wave refusal that #2194 names directly. The two also clash: together the message becomes "pipeline: compute root signature: root signature: ..." and this PR's bucket test fails. The code itself is correct.If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.
Pull request closed