71 mesh shaders exceed the 32 KB mesh output limit (validator), NVIDIA accepts them #283
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#283
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@arminkhaleghirod on GitHub · 2026-11-24 23:13 UTC · original
With #61 applied, the validator stops hiding this one: 71 mesh programs fail with
vertex plus primitive output size is greater than 32768.translate --pipelinesstill creates all 8,762 mesh pipelines, including these 71. So NVIDIA draws them today, and it's a validator-level problem there. Other drivers may refuse them.Lowering the vertex maximum to 96 makes them validate, but it drops the triangles that use vertices 96–127. I tried it and am not proposing it. The real fix is 16-bit signature elements for the 16-bit outputs.
github-bot referenced this issue2026-11-26 03:42:31 +00:00
@avt0m4t48 on GitHub · 2026-11-24 23:32 UTC · original
I checked the output limit on
2119b0ewith a source-built fixture. The D3D12 rule charges four bytes per signature scalar, including native FP16. At 128 vertices, 65 scalars count as 33,280 bytes. Microsoftdxvrejected both 65-scalar FP32 and true-FP16 versions, including the version withstoreVertexOutput.f16. D3D12 specification · Validator implementationA control packed two already-paired FP16 export values into one flat
uintand validated at 64 scalars. The fixture retained 128 vertices and a triangle using indices 125, 126, and 127. A companion pixel shader independently validated when it unpacked each vertex's value before barycentric interpolation.This suggests a shared mesh/pixel signature layout keyed into the stage cache. The offline check covers DXIL validation. Linked pipeline creation and rendered interpolation still need verification.
@avt0m4t48 on GitHub · 2026-11-25 00:18 UTC · original · edited 2026-11-25 00:27 UTC
The packed interface now has a native Windows readback check. On a Windows CI runner I used the pinned Microsoft WARP 1.0.22, verified SM 6.6, mesh tier 1 and barycentric support, then created and rendered four mesh/pixel PSOs. The mesh retained 128 declared vertices with triangle indices 125, 126 and 127.
The packed and split reference shaders covered the same 66 pixels of a 16×16 target. The perspective-correct results matched each other and the CPU oracle with unequal clip-space W. Both flat variants matched the provoking vertex. The PSO check rejected the deliberately mismatched pair whose pixel input semantic was absent from the mesh output. Windows run and logs · Synthetic fixture and test
This run used original Microsoft DXC stages. The implementation work in Victory is to select the same layout for both stages, unpack each vertex before weighting, and key both translation caches by that layout. The test covers D3D12 software execution. Results on physical GPUs and title shaders are still pending. The fixture and checks were prepared with Codex assistance.