P0: verify a submitted Mesh86 scene draw through presentation #3641

Open
opened 2026-11-30 19:14:02 +00:00 by R0Y00 · 1 comment
R0Y00 commented 2026-11-30 19:14:02 +00:00 (Migrated from github.com)
Contributor

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


Merged coverage

#3764 corrects staged primitive indices, and #3807 adds indexed raw SRV binding for both mesh and pixel stages. Source-built controls cover rasterization with the expected stride and refusal with mismatched or missing backing. The historical local run below still had zero pixel shader invocations. #3763 remains the dependency for a visible scene sample.

Current scope

The four sampled native Mesh86 PSOs now reach the GPU fence in a local C++ working tree. The latest sample recorded 48 dispatches with zero pixel shader invocations. #3763 tracks geometry stream coherence and the first rasterized output. This issue tracks same-dispatch color or depth through presentation once that output is available.

Refs #870, #3541, #3310 and #3638. Depends on resolving the first blocking binding in #3639 or #3640 for the selected draw. Target main.

The native C++ runtime created and selected four desktop Mesh86 PSOs in a local run. The direct slot 129 handler received calls with those PSOs. Each sampled draw stopped at resource binding, with zero records and zero submissions. Direct submission with a 24 MiB committed SRV passed an isolated local adapter probe. Visible scene output remains unverified.

  • Use a fixed profile and correlate one target draw's PSO, group counts and list recording ID across bind, close and queue submission.
  • Read back a known target region before composition on the same frame. Show a color or depth change caused by the selected draw, with a skipped-draw control.
  • Trace the result into a presented frame. Report source-built results, local scene observations, head commit, driver, debug-layer state and any refusal independently.
  • Keep indirect argument producer work tracked in #3310 and fixed-slot mesh translation tracked in #3416.

Performance and code quality

  • Keep draw capture and GPU readback opt-in and bounded to the selected frames. Check that the normal C++ rendering path avoids diagnostic allocations, readbacks and CPU waits when tracing is disabled.
  • Measure CPU and GPU frame time and peak VRAM under matched scene, adapter and settings with diagnostics disabled. If the baseline cannot submit the selected draw, report the added work separately from overhead. Reuse existing submission and capture helpers and make the skipped-draw control repeatable.

Keep public evidence title-neutral and use source-built fixtures.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6704209221 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3641). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-30T19:14:02Z. --- ## Merged coverage #3764 corrects staged primitive indices, and #3807 adds indexed raw SRV binding for both mesh and pixel stages. Source-built controls cover rasterization with the expected stride and refusal with mismatched or missing backing. The historical local run below still had zero pixel shader invocations. #3763 remains the dependency for a visible scene sample. ## Current scope The four sampled native Mesh86 PSOs now reach the GPU fence in a local C++ working tree. The latest sample recorded 48 dispatches with zero pixel shader invocations. #3763 tracks geometry stream coherence and the first rasterized output. This issue tracks same-dispatch color or depth through presentation once that output is available. Refs #870, #3541, #3310 and #3638. Depends on resolving the first blocking binding in #3639 or #3640 for the selected draw. Target `main`. The native C++ runtime created and selected four desktop Mesh86 PSOs in a local run. The direct slot 129 handler received calls with those PSOs. Each sampled draw stopped at resource binding, with zero records and zero submissions. Direct submission with a 24 MiB committed SRV passed an isolated local adapter probe. Visible scene output remains unverified. - [ ] Use a fixed profile and correlate one target draw's PSO, group counts and list recording ID across bind, close and queue submission. - [ ] Read back a known target region before composition on the same frame. Show a color or depth change caused by the selected draw, with a skipped-draw control. - [ ] Trace the result into a presented frame. Report source-built results, local scene observations, head commit, driver, debug-layer state and any refusal independently. - [ ] Keep indirect argument producer work tracked in #3310 and fixed-slot mesh translation tracked in #3416. ## Performance and code quality - [ ] Keep draw capture and GPU readback opt-in and bounded to the selected frames. Check that the normal C++ rendering path avoids diagnostic allocations, readbacks and CPU waits when tracing is disabled. - [ ] Measure CPU and GPU frame time and peak VRAM under matched scene, adapter and settings with diagnostics disabled. If the baseline cannot submit the selected draw, report the added work separately from overhead. Reuse existing submission and capture helpers and make the skipped-draw control repeatable. Keep public evidence title-neutral and use source-built fixtures.
lukaslw-lab commented 2026-12-01 05:47:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T05:47:09Z.


Work split for 24 slot 86 mesh programs that the translator refuses before binding: #3703 (proof, loop design, claim list). In flight: #3702 (root SRV stride bit) and #3704 (v_cvt_i32_f32, v_mad_f32). Still open: the scalar loop, idxen offen raw loads, and the 2D table image load. These programs also need the root SRV binding of #3639.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7302135608 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3641#issuecomment-7302135608). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T05:47:09Z. --- Work split for 24 slot 86 mesh programs that the translator refuses before binding: #3703 (proof, loop design, claim list). In flight: #3702 (root SRV stride bit) and #3704 (`v_cvt_i32_f32`, `v_mad_f32`). Still open: the scalar loop, `idxen offen` raw loads, and the 2D table image load. These programs also need the root SRV binding of #3639.
Sign in to join this conversation.
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#3641
No description provided.