Translate indexed mesh vertices and verify visible triangle coverage #492
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/498"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T07:51:25Z.
Scope
Extend the bounded two-wave mesh specialization to one indexed vertex layout. Follow packed halfword indices, the specialized header and the constructed vertex descriptor to a three-word raw SRV fetch. Keep the vertex payload and both transforms on the GPU. Existing uniform-position callers retain their previous ABI.
Verification
python3 -B tests/mesh_indexed_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1assembled the source-built program and passed translation through the synthetic native container. Rejection controls include stale descriptors, missing waits and out-of-range indices.ctest --preset dev --no-tests=error -R "^mesh_(entry|indexed)_draw_" -Vexercises original and indexed fixtures on hardware and WARP, with a plain mesh shader and an instrumented variant.A full inventory contained 9,282 MS records. Of 531 records with native extents up to 1,200 bytes, one translated to an indexed vertex load under this exact specialization. Coverage counts include that one record. The other 530 short entries remain outside this verified profile.
With the partial triangle held fixed, applying nonidentity object and projection matrices produced a third footprint of 66 pixels. All 1,024 pixels and all exported positions matched an independently composed CPU reference on hardware and WARP.