xshader: ignore unmapped position export 13 and default unmapped PS attributes #181
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!181
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/181/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 19:49 UTC · original
adriaespii:contrib/xshader-unmapped-pos-and-attr→main· +53 −17 · 3 files · 1 commits · closed without mergingSummary
Resolves the two shader translation failures tracked in \docs/BLOCKERS.md:
Testing
@omonkeyz on GitHub · 2026-11-22 22:05 UTC · original
Thanks. After review, this PR is being split.
Export-13 half: accepted. A position export with no SV_ClipDistance/SV_CullDistance consumer is correctly dropped. I'll apply that hunk and its test with your authorship.
PS-attribute half: needs a rework. A fixed (0,0,0,1) is a guess, and our no-fake-success rule doesn't allow it. On hardware, an attribute with no matching input takes its value from the per-attribute DEFAULT_VAL field of SPI_PS_INPUT_CNTL_n that the title programs. That field has four encodings, (0,0,0,0), (0,0,0,1), (1,1,1,0) and (1,1,1,1), and FLAT_SHADE/OFFSET also matter.
BLOCKERS: ba37366c685cb01e stays open until the rework lands. 278d1ef397725c4e is closed only once it is confirmed to translate with the export-13 change.
@omonkeyz on GitHub · 2026-11-22 23:03 UTC · original
The export-13 half is applied in
b9055dd(merged inf850f50) with your authorship kept. The PS-attribute default half is still waiting on the rework described above, so this PR stays open. 278d1ef397725c4e stays listed in BLOCKERS until it is confirmed to translate on the title.@omonkeyz on GitHub · 2026-11-23 13:31 UTC · original
Review: the position-export-13 half is already on main (
b9055dd). The remaining hunk replaces the missing-signature-register error with a fixed (0,0,0,1). Hardware picks the default per attribute (four possible values), so this would be a guess. Please rework it on top of #253's emit_interp, using the attribute's real default, and drop the docs/BLOCKERS.md edit.@omonkeyz on GitHub · 2026-11-25 13:51 UTC · original
Thanks. The position-export fix is already on main (
b9055dd) and PS attribute 0 is handled by the misc/layer mapping. The remaining (0,0,0,1) default for unmapped PS attributes hides a missing mapping instead of reporting it, so this is closed as superseded.Pull request closed