Translate indexed mesh vertices and verify visible triangle coverage #498

Manually merged
github merged 1 commit from gh-pr/498/head into gh-pr/498/base 2026-11-26 21:56:51 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-22 07:51 UTC · original
R0Y00:codex/indexed-mesh → main · +329 −39 · 9 files · 1 commits · merged 2026-11-22 07:58 UTC

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.1 assembled 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_" -V exercises original and indexed fixtures on hardware and WARP, with a plain mesh shader and an instrumented variant.
  • A local 1,028-byte native entry translated from its first instruction to the mesh exports. Two different vertex buffers produced 1,024 and 276 green pixels in a 32×32 target. Both complete images, positions and indices matched CPU references. Replacing the first vertex with the second left zero covered pixels and caused exactly 276 mismatches against the partial reference.
  • Windows build 26200.9974, RTX 4060 Laptop driver 32.0.16.1656 and WARP 10.0.26100.9818, debug layer enabled. CI uses only source-built data. The original application's geometry and draw state remain unverified.

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.

**@⁠R0Y00** on GitHub · 2026-11-22 07:51 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/498) `R0Y00:codex/indexed-mesh` → `main` · +329 −39 · 9 files · 1 commits · merged 2026-11-22 07:58 UTC ## 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.1` assembled 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_" -V` exercises original and indexed fixtures on hardware and WARP, with a plain mesh shader and an instrumented variant. - A local 1,028-byte native entry translated from its first instruction to the mesh exports. Two different vertex buffers produced 1,024 and 276 green pixels in a 32×32 target. Both complete images, positions and indices matched CPU references. Replacing the first vertex with the second left zero covered pixels and caused exactly 276 mismatches against the partial reference. - Windows build 26200.9974, RTX 4060 Laptop driver 32.0.16.1656 and WARP 10.0.26100.9818, debug layer enabled. CI uses only source-built data. The original application's geometry and draw state remain unverified. 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:56:48 +00:00
github manually merged commit 7d118b9ea8 into gh-pr/498/base 2026-11-26 21:56:51 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.