Recompile a bounded mesh entry and verify D3D12 mesh exports #491

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

@⁠R0Y00 on GitHub · 2026-11-22 07:14 UTC · original
R0Y00:codex/first-ms → main · +910 −7 · 10 files · 1 commits · merged 2026-11-22 07:25 UTC

Scope

Recompile a bounded two-wave gfx1013 triangle mesh entry to a desktop mesh shader. Geometry and single-group dispatch arguments are specialization inputs. Position and transform remain independently bound GPU inputs. Reject unproven branches, unsupported live operations, invalid geometry fetches or inconsistent allocation/exports.

Verification

  • python3 -B tests/mesh_entry_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1 passed. LLVM 15 assembled the original synthetic triangle, and translation through its native container matched the decoded fixture.
  • ctest --preset dev --no-tests=error -R "^mesh_entry_draw_" -V passed on hardware and WARP. The visible control covers all 1,024 pixels, and an incorrect primitive index fails the trace comparison. The plain DXIL and the separately compiled UAV-instrumented DXIL both run through a mesh PSO and DispatchMesh.
  • Selected the shortest validated native program among 9,282 local MS records (832 bytes, 153 instructions). With the documented specialization its three positions coincide. Two point/matrix sets match CPU-computed positions, output counts, indices and clear-color rasterization. A separate negative changed the bound point and kept the old CPU reference. Both adapters still matched every clear-color pixel and both failed at the exported positions. The visible synthetic triangle independently exercises the raster path. The 832-byte minimum is unique among all 9,282 validated extents.
  • Windows 26200.9974, RTX 4060 Laptop driver 32.0.16.1656 and WARP 10.0.26100.9818, debug layer enabled, zero warnings/errors on both for the selected program. Source-built inputs only in CI.
**@⁠R0Y00** on GitHub · 2026-11-22 07:14 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/491) `R0Y00:codex/first-ms` → `main` · +910 −7 · 10 files · 1 commits · merged 2026-11-22 07:25 UTC ## Scope Recompile a bounded two-wave gfx1013 triangle mesh entry to a desktop mesh shader. Geometry and single-group dispatch arguments are specialization inputs. Position and transform remain independently bound GPU inputs. Reject unproven branches, unsupported live operations, invalid geometry fetches or inconsistent allocation/exports. ## Verification - `python3 -B tests/mesh_entry_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1` passed. LLVM 15 assembled the original synthetic triangle, and translation through its native container matched the decoded fixture. - `ctest --preset dev --no-tests=error -R "^mesh_entry_draw_" -V` passed on hardware and WARP. The visible control covers all 1,024 pixels, and an incorrect primitive index fails the trace comparison. The plain DXIL and the separately compiled UAV-instrumented DXIL both run through a mesh PSO and DispatchMesh. - Selected the shortest validated native program among 9,282 local MS records (832 bytes, 153 instructions). With the documented specialization its three positions coincide. Two point/matrix sets match CPU-computed positions, output counts, indices and clear-color rasterization. A separate negative changed the bound point and kept the old CPU reference. Both adapters still matched every clear-color pixel and both failed at the exported positions. The visible synthetic triangle independently exercises the raster path. The 832-byte minimum is unique among all 9,282 validated extents. - Windows 26200.9974, RTX 4060 Laptop driver 32.0.16.1656 and WARP 10.0.26100.9818, debug layer enabled, zero warnings/errors on both for the selected program. Source-built inputs only in CI.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:56:13 +00:00
github manually merged commit 38cf76b1a8 into gh-pr/491/base 2026-11-26 21:56:19 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.