Shaders: match DXC ISG1/OSG1 row tie-break order and canonical SV names (fixes #53) #189
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/189"
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 gdawid9407 on 2026-11-24T22:21:57Z.
Problem
dxil.dllvalidatesISG1/OSG1by runningDxilProgramSignatureWriterover the module's entry-point metadata andmemcmp-ing the serialized part (VerifySignatureMatches). Three edge cases causedcontainer::signatureto diverge from DXC (validator 1.6):sort_sig): DXC's signature packer often packs an earlier narrow HLSL element into the upper columns of a register occupied by a later wider element (e.g.TEXCOORD0atrow 1, col 3andTEXCOORD1atrow 1, col 0).DxilContainerAssembler'ssort_sigorders elements sharing a register by(Stream, Register, SemanticName)(string-table byte offset), whereascontainer::signaturesorted by(row, col), swapping the two rows inISG1whilePSV0and the D3D12 runtime still accepted the pipeline (#53).DxilSignatureElement::GetName()always emits the canonicalSemantic::ms_SemanticTablestring (SV_Position,SV_IsFrontFace,SV_SampleIndex, ...) for non-arbitrary kinds regardless of input casing.row.is_none()(!IsAllocated()), DXC leavesMaskandUsageMaskunshifted (StartCol = 0).Changes
ISG1/OSG1rows by(row.unwrap_or(u32::MAX), offsets[i]).SigElement::semantic_name.colonly whenrow.is_some().signature_matches_dxc_row_order_and_canonical_system_names.Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:37:02Z.
Duplicate of #110?
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.