Shaders: match DXC ISG1/OSG1 row tie-break order and canonical SV names (fixes #53) #189
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!189
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@gdawid9407 on GitHub · 2026-11-24 22:21 UTC · original
gdawid9407:fix/isg1-signature-order→main· +109 −7 · 1 files · 1 commits · openProblem
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.@kaayzouee on GitHub · 2026-11-25 01:37 UTC · original
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.