Separate signature rows by interpolation mode and rebuild container parts in name order #1160
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!1160
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1160"
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?
@superboynick on GitHub · 2026-11-25 22:07 UTC · original
superboynick:fix/signature-rows→main· +147 −19 · 5 files · 3 commits · openThree shader-emission defects, all invisible unless the census runs with
--validate: every program involved already got a pipeline.1. Signature elements of differing interpolation modes in one row (84 lines).
The emitter kept the container's row assignment and set interpolation modes per element afterwards, so two elements sharing a row could disagree. Elements are now separated by mode after lowering; a program that cannot fit within the 32 rows the format allows is reported unsupported rather than emitted invalid.
2. Container signature parts rebuilt in the wrong order (74 lines).
Both parts were rebuilt from the lowered module but ordered by column rather than by name within each register. Sorting by name matches what the module declares.
3. An array-layer index in the LOD query slot (4 lines).
An array-layer index was passed into the third coordinate of a level-of-detail query with the remaining slots left as they came, which the validator reads as an out-of-bounds coordinate rather than an unused one. Writing
undefthere clears the error and touches no other coordinate. Affected programs were the three*_AlphaClippixel shaders.Measured on the full pack (
translate --validate --pipelines --list, dxil.dll 1.9, 32-lane, 26,084 programs):origin/main this PR interpolation-mode errors 84 0 container signature mismatch 74 0 out of bound coord 4 0 validated vertex and pixel 14088 14199 pipelines created 25607 25607All 14,199 emitted vertex and pixel programs now validate; the pipeline count is unchanged, so this corrects generated code rather than unlocking draws.
What is left on this host, untouched here: 72 mesh programs whose combined vertex and primitive outputs exceed 32768 components. Their overshoot is small - 128 to 896 components over, with 33 of 71 unique hashes at +256, all in ped-skinning meshes with no primitive outputs at all - which is documented on #854 rather than fixed.
Tests cover the row-separation rule with table-driven cases: 218 passed, 3 ignored.
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.