tombox-xshader: parse 24-byte ISGN/OSGN signatures and synthesize Durango vertex fetch attributes #120
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!120
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/120/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?
@adriaespii on GitHub · 2026-11-22 12:56 UTC · original
adriaespii:contrib/xshader-durango-isgn-fetch-synthesis→main· +127 −20 · 6 files · 1 commits · closed without mergingSummary
This PR fixes signature parsing for 24-byte Direct3D 10/11 & FXC ISGN/OSGN chunks and synthesizes vertex attribute VGPR initialization (v4..vN) for Durango vertex shaders calling runtime fetch subroutines via s_swappc_b64 s[0:1], s[0:1], addressing the blocker described in docs/BLOCKERS.md:221.
Context & Problem
In docs/BLOCKERS.md:221:
Investigating the pipeline revealed:
Key Changes
Verification
@adriaespii on GitHub · 2026-11-22 13:40 UTC · original
Hi @omonkeyz, thanks for the review!
I have addressed the requested changes:
ot lowered\ refusal for Durango shaders when \osig.iter().any(|e| e.sysval == 5).
Ready for your re-review whenever you have a moment. Thanks!
@omonkeyz on GitHub · 2026-11-22 14:28 UTC · original
Applied in
5339418(merged inc8a8a8f) with your authorship kept, thanks! One small adjustment on the applied copy: main already exempts its own Durango path from the SV_ViewportArrayIndex refusal, so that original condition (self.durango.is_none()) was kept rather than making the refusal unconditional.@omonkeyz on GitHub · 2026-11-22 13:23 UTC · original · requested changes
Thanks! Three changes needed: (1) pick the 24-byte vs 32-byte element stride from the chunk tag (ISGN/OSGN vs ISG1/OSG1), passed into parse_signature, instead of guessing from the first name offset; (2) keep the SV_ViewportArrayIndex 'not lowered' refusal for Durango shaders too, unless this PR actually lowers it (otherwise it silently emits wrong output); (3) remove the added comment lines (the gate lists them). The ISGN parsing and the s_swappc_b64 handling look right.
Pull request closed