Resolve the level-of-detail query slot that nothing uses #2

Manually merged
github merged 1 commit from gh-pr/2/head into gh-pr/2/base 2026-11-27 06:06:19 +00:00
Owner

@⁠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 UTC

Resolve the level-of-detail query slot that nothing uses

Three pixel shaders in the retail pack failed DXIL validation with one message:

validator: Function: main: error: out of bound coord must be undef.
  PS_DeferredTextured_AlphaClip_c5fd36bb          #34e55a0ea39604a4
  PS_MirrorReflectionDeferredTextured_AlphaClip   #cc182397d5d326f9
  PS_VfxVBuffer_AlphaClip_0e67afa3                #d52fbc5975d0fa65

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 undef there clears the error on
all 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:

  • One narrow fix, not a class. On my machine the remaining validator errors are 72 mesh
    programs whose combined vertex and primitive output exceeds 32768 components.
  • victory-shader's suite passes with this alone: 281 passed, 4 ignored.
  • The class is invisible without --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 row errors on the same pack - is not part of this PR. It breaks
emit::barycentric_tests::an_unused_packed_input_matches_its_provoking_vertex_sibling here,
because this tree already unifies the mode of packed-but-unused inputs in finish() rather
than 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.

**@⁠superboynick** on GitHub · 2026-11-26 09:28 UTC · [original](https://github.com/DoubleGhosty/cool_fox/pull/2) `superboynick:port/lod-only` → `main` · +4 −1 · 1 files · 1 commits · merged 2026-11-26 15:13 UTC Resolve the level-of-detail query slot that nothing uses Three pixel shaders in the retail pack failed DXIL validation with one message: ``` validator: Function: main: error: out of bound coord must be undef. PS_DeferredTextured_AlphaClip_c5fd36bb #34e55a0ea39604a4 PS_MirrorReflectionDeferredTextured_AlphaClip #cc182397d5d326f9 PS_VfxVBuffer_AlphaClip_0e67afa3 #d52fbc5975d0fa65 ``` 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 `undef` there clears the error on all 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: - One narrow fix, not a class. On my machine the remaining validator errors are 72 mesh programs whose combined vertex and primitive output exceeds 32768 components. - `victory-shader`'s suite passes with this alone: 281 passed, 4 ignored. - The class is invisible without `--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 row` errors on the same pack - is **not** part of this PR. It breaks `emit::barycentric_tests::an_unused_packed_input_matches_its_provoking_vertex_sibling` here, because this tree already unifies the mode of packed-but-unused inputs in `finish()` rather than 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.
The validator rejects a coordinate that is out of bounds and not undef.
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 undef there instead clears the error on all three programs
that reported it, and touches no other coordinate.

Verified on the three programs by hash: no validator error, all three
pipelines still created.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 06:06:17 +00:00
github manually merged commit 266f5de8ad into gh-pr/2/base 2026-11-27 06:06:19 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.