CLI: separate root-signature failures in victory translate --pipelines (#885) #2157
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2157
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2157/head"
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?
@fuzeofficlal on GitHub · 2026-11-25 06:29 UTC · original
fuzeofficlal:fix/cli-translate-pipeline-stage-reasons-885→main· +129 −3 · 2 files · 1 commits · closed without mergingSummary
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
@Dathinel on GitHub · 2026-11-25 06:38 UTC · original
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.@sinan-cmyk on GitHub · 2026-11-25 08:09 UTC · original
Offline measurement on a retail dump
Result: no count change against
main.I merged head 9771cae5 onto
main940d32f(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).
@Marvisak on GitHub · 2026-11-25 11:24 UTC · original · edited 2026-11-25 12:32 UTC
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
@fuzeofficlal on GitHub · 2026-11-25 12:00 UTC · original
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.@Marvisak on GitHub · 2026-11-25 22:12 UTC · original
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