runtime: wire native slot 86 mesh bindings and direct DispatchMesh #3638

Merged
R0Y00 merged 11 commits from upstream-pr/3638 into main 2026-11-30 19:13:32 +00:00
R0Y00 commented 2026-11-30 19:10:30 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-30T19:10:30Z.


Refs #3541, #3545 and #870.

Changes

  • Extend the native C++ mesh and pixel lowerers used by slot 86. Add Texture1D heap remapping and the runtime material, sampler and root-constant bindings.
  • Forward list slot 129 to desktop DispatchMesh for supported native Mesh86 PSOs. Correlate the PSO and group counts with the list's recording, close and queue submission.
  • Resolve explicit committed-buffer SRVs through their registered resource and validate GPU-backed Mesh86 views against the desktop raw SRV and resource bounds. Log the first failing material descriptor by stage, register, root parameter and table byte offset.
  • Incorporate current main's stage-visibility proof and constants-only requirement for wide legacy heap-cache roots.

Verified and pending

Integrated head 907bade4 targets bee9c64d. Windows 11 build 26300, NVIDIA RTX 4060 Laptop GPU, driver 616.56. The focused Release suite passed 14/14 with no skips, including WARP and physical-adapter readbacks. The cache CLI passes six cases within its CTest entry.

cmake --build $build --target compile_dxil startup_indirect_draw_indexed startup_runtime --parallel 4
ctest --test-dir $build --no-tests=error -j1 -R '^(native_direct_(container|mesh)|runtime_mesh86_cache_cli_check|startup_mesh86_srv_proof|startup_indirect_mesh_cache_(heap(_wide)?_|texture_map_|constants_wide_)?(warp|hardware))

A separate local runtime observation created and selected four desktop Mesh86 PSOs and reached the direct slot 129 handler. Scene Mesh86 commands recorded and submitted were both zero. The first unresolved bindings were:

| Binding | Reached check |
| --- | --- |
| Mesh `t1`, root parameter 3 | No mapped backing for the required 128-byte root SRV |
| Mesh `t0`, root parameter 0, offset `0xAC0` | A 45,613,056-dword raw SRV reached the backing check. The placed desktop buffer did not alias the guest allocation and had no verified producer for that range. |

Visible 3D scene output is unverified. --output-on-failure

$build is the configured Release build directory. A local D3D12 debug-layer probe on the pre-integration build recorded and submitted a direct dispatch with a 24 MiB committed-buffer view and waited for its fence. The preceding size check refused the same probe. The missing-root-constants control was refused as expected. The local scene observations below used the debug layer off.

A separate local runtime observation created and selected four desktop Mesh86 PSOs and reached the direct slot 129 handler. Scene Mesh86 commands recorded and submitted were both zero. The first unresolved bindings were:

Binding Reached check
Mesh t1, root parameter 3 No mapped backing for the required 128-byte root SRV
Mesh t0, root parameter 0, offset 0xAC0 A 45,613,056-dword raw SRV reached the backing check. The placed desktop buffer did not alias the guest allocation and had no verified producer for that range.

Visible 3D scene output is unverified.

P0 follow-up

  • #3639 tracks the 128-byte root SRV backing.
  • #3640 tracks coherent backing and ordering for the large placed SRV.
  • #3641 tracks the first scene-target readback and presentation proof.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5571962280 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3638). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-30T19:10:30Z. --- Refs #3541, #3545 and #870. ## Changes - Extend the native C++ mesh and pixel lowerers used by slot 86. Add Texture1D heap remapping and the runtime material, sampler and root-constant bindings. - Forward list slot 129 to desktop `DispatchMesh` for supported native Mesh86 PSOs. Correlate the PSO and group counts with the list's recording, close and queue submission. - Resolve explicit committed-buffer SRVs through their registered resource and validate GPU-backed Mesh86 views against the desktop raw SRV and resource bounds. Log the first failing material descriptor by stage, register, root parameter and table byte offset. - Incorporate current main's stage-visibility proof and `constants-only` requirement for wide legacy heap-cache roots. ## Verified and pending Integrated head `907bade4` targets `bee9c64d`. Windows 11 build 26300, NVIDIA RTX 4060 Laptop GPU, driver 616.56. The focused Release suite passed **14/14** with no skips, including WARP and physical-adapter readbacks. The cache CLI passes six cases within its CTest entry. ```powershell cmake --build $build --target compile_dxil startup_indirect_draw_indexed startup_runtime --parallel 4 ctest --test-dir $build --no-tests=error -j1 -R '^(native_direct_(container|mesh)|runtime_mesh86_cache_cli_check|startup_mesh86_srv_proof|startup_indirect_mesh_cache_(heap(_wide)?_|texture_map_|constants_wide_)?(warp|hardware)) A separate local runtime observation created and selected four desktop Mesh86 PSOs and reached the direct slot 129 handler. Scene Mesh86 commands recorded and submitted were both zero. The first unresolved bindings were: | Binding | Reached check | | --- | --- | | Mesh `t1`, root parameter 3 | No mapped backing for the required 128-byte root SRV | | Mesh `t0`, root parameter 0, offset `0xAC0` | A 45,613,056-dword raw SRV reached the backing check. The placed desktop buffer did not alias the guest allocation and had no verified producer for that range. | Visible 3D scene output is unverified. --output-on-failure ``` `$build` is the configured Release build directory. A local D3D12 debug-layer probe on the pre-integration build recorded and submitted a direct dispatch with a 24 MiB committed-buffer view and waited for its fence. The preceding size check refused the same probe. The missing-root-constants control was refused as expected. The local scene observations below used the debug layer off. A separate local runtime observation created and selected four desktop Mesh86 PSOs and reached the direct slot 129 handler. Scene Mesh86 commands recorded and submitted were both zero. The first unresolved bindings were: | Binding | Reached check | | --- | --- | | Mesh `t1`, root parameter 3 | No mapped backing for the required 128-byte root SRV | | Mesh `t0`, root parameter 0, offset `0xAC0` | A 45,613,056-dword raw SRV reached the backing check. The placed desktop buffer did not alias the guest allocation and had no verified producer for that range. | Visible 3D scene output is unverified. ## P0 follow-up - #3639 tracks the 128-byte root SRV backing. - #3640 tracks coherent backing and ordering for the large placed SRV. - #3641 tracks the first scene-target readback and presentation proof.
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!3638
No description provided.