Shaders: match DXIL validator layout for ISG1/OSG1 signatures #124
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!124
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-124"
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?
@vicennpacheco on GitHub · 2026-11-24 21:40 UTC · original
vicennpacheco:fix/isg1-validation→main· +174 −6 · 2 files · 1 commits · openSummary
Addresses
dxil.dllsignature validation failures of the form:(and the matching
Program Output Signatureerror), as reported in #53.Root causes found against
dxil.dll10.0.26100.0In
crates/victory-shader/src/emit/container.rs(signature()), three differences from DXIL's reconstructedISG1/OSG1triggered validation failures even when D3D12 still created the pipeline:(row, col)instead ofrowalone. When two packed elements share a register with the higher column listed first (e.g.col = 2beforecol = 0),dxil.dllkeeps element order within the row.kind != 0) wrotee.nameverbatim (e.g.SV_POSITION,SV_TARGET,SV_ISFRONTFACE), whereasdxil.dllwrites DXIL's canonical mixed-case semantic names (SV_Position,SV_Target,SV_IsFrontFace, ...).row == None(StartRow = -1,StartCol = -1insignature_md),mask()andusagestill shifted bye.colinstead of0.(Note: this was reproduced and verified with synthetic shaders and
dxil.dll10.0.26100.0 without game files, so I have not tested the specific shader hash from #53 directly — hence linking #53 rather than auto-closing it.)Tests
Tested on Windows 11, AMD Radeon Vega 8 iGPU (Ryzen 7 5825U, GCN 5 /
gfx90c, AMD driver31.0.21921.13001), Windows SDKdxil.dll10.0.26100.0, Rust1.98.1(x86_64-pc-windows-msvc), without game files:emit::container::tests::signature_keeps_same_row_order_canonical_sv_names_and_unalloc_maskemit::barycentric_tests::signature_parts_match_dxil_validator(all 3 cases failed with the exact#53error before the fix and pass after)cargo test -p victory-shader --lib -- emit::container emit::barycentric_tests emit::tests: 23 passed, 0 failedcargo clippy -p victory-shader --tests -- -D warnings: clean(AI-assisted investigation and patch.)
@adriaespii on GitHub · 2026-11-24 21:52 UTC · original
Independent test run on commit
3ed5e89(AMD RDNA4):x86_64-pc-windows-msvc)cargo clippy --workspace --all-targets -- -D warnings: 0 warningscargo test --workspace: 498 passed, 0 failed, 7 ignored (victory-shader: 212 passed, 0 failed, 2 ignored;victory-gpu: 110 passed, 0 failed, 1 ignored)AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report.
@arminkhaleghirod on GitHub · 2026-11-24 22:23 UTC · original
Merged onto main
90228a7and ranvictory translate --validateover the full title (26,148 programs) on Windows 11 / RTX 4080.Clears the 39
Program Output Signatureand 33Program Input Signaturemismatches. On main those 72 programs then fall into the blanket PSV mismatch (17,359 → 17,431), so the gain only shows on top of #61. #124, #110 and #112 give identical counts here, so they look like they overlap.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.