Resolve the level-of-detail query slot that nothing uses #2
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/DoubleGhosty--cool_fox!2
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2/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?
@superboynick on GitHub · 2026-11-26 09:28 UTC · original
superboynick:port/lod-only→main· +4 −1 · 1 files · 1 commits · merged 2026-11-26 15:13 UTCResolve the level-of-detail query slot that nothing uses
Three pixel shaders in the retail pack failed DXIL validation with one message:
An array-layer index was being passed into the third coordinate of a level-of-detail query
while the remaining slots were left as they came, which the validator reads as an
out-of-bounds coordinate rather than an unused one. Writing
undefthere clears the error onall three, and touches no other coordinate.
Measured on the full pack (26,084 programs,
translate --validate --pipelines --list,dxil.dll 1.9, 32-lane): those four error lines go to zero and the three programs still create
their pipelines.
Scope and limits, stated plainly:
programs whose combined vertex and primitive output exceeds 32768 components.
victory-shader's suite passes with this alone: 281 passed, 4 ignored.--validate; that is why these three survived.A second change I had prepared - separating signature elements into rows by interpolation
mode, to dismiss 84
interpolation mode that differs from another element packed into the same rowerrors on the same pack - is not part of this PR. It breaksemit::barycentric_tests::an_unused_packed_input_matches_its_provoking_vertex_siblinghere,because this tree already unifies the mode of packed-but-unused inputs in
finish()ratherthan moving them, and the two approaches disagree about the row a program ends up with. If
the validator still reports that class on this tree, the fix belongs next to that existing
code rather than as a port of mine.