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

Merged
R0Y00 merged 1 commit from upstream-pr/491 into main 2026-11-22 07:25:18 +00:00
R0Y00 commented 2026-11-22 07:14:57 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T07:14:57Z.


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.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6539713955 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/491). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T07:14:57Z. --- ## 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.
upstream-sync closed this pull request 2026-11-24 06:43:19 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!485
No description provided.