runtime: forward one GPU-written indirect DispatchMesh #1909
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1916"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by avt0m4t48 on 2026-11-24T21:06:43Z.
Refs #1759. Builds on #1909's indirect graphics fixture and state checks. The single-frame census in #1412 counted 3,715 mesh-dispatch records.
Forward one rootless desktop
DispatchMeshrecord through guest list slot 61 with the exactD3D12_DISPATCH_MESH_ARGUMENTSstride. The native stream parser admits a desktop mesh/pixel pipeline with an empty root signature. The direct list requires a matching pipeline, target, viewport and scissor and transitions the placed argument resource toINDIRECT_ARGUMENT. The mesh command supplies its topology. Amplification, stream output, and console shader bindings are outside this slice.The compute writer selects one or two mesh groups at a nonzero argument offset. The source-built mesh renders four or eight pixels respectively. Every pixel and argument word is compared. The omitted writer, short argument range and missing viewport leave the target clear.
cmake --build --preset release --target startup_indirect_draw_indexed startup_indirect_dispatchandctest --preset release --no-tests=error -R '^startup_indirect_(dispatch|draw(_indexed)?|mesh)_warp$' -Vpassed all four tests. Candidate run(0,0)stayed0xff000000instead of0xff0000ff. All three previous indirect fixtures passed at that baseline. Negative controlctest --preset release --no-tests=error -R '^startup_indirect_mesh_hardware$' -V.Physical GPU execution and application mesh pipeline integration remain open. The fixture uses source-built desktop shaders.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T21:16:18Z.
Review: COMMENTED
Review of exact head
015b8d89c5bf9c2f49880de4817b155faadf8bdc(title is neutral; the diff touchesCMakeLists.txt,CMakePresets.json,docs/experiments.md,docs/startup-runtime.md,src/startup_stubs/d3d12_xs_device.cpp,tests/startup_indirect_draw_indexed.cpp,tests/startup_indirect_mesh.hlsl).Verdict: no P1, no P2 found. Three P3 test-coverage notes below.
Commands run locally (against
origin/main...HEAD):git diff --check origin/main...HEAD: clean, rc=0tests/docs_links_check.py: "Self-test passed. Checked 18 Markdown files and 380 links."tests/bidi_controls_check.py: "Checked 1339 tracked source, script and build/CI files: no bidirectional controls."x2w_pipe.py win2025 1916 --targets d3d12_xs_shim,startup_indirect_draw_indexed,startup_indirect_dispatch --regex '^startup_indirect_(dispatch|draw(_indexed)?|mesh)_warp$'on Windows Server 2025 (Debug and Release /O2): 4/4 passed in both (startup_indirect_mesh_warp,startup_indirect_draw_warp,startup_indirect_draw_indexed_warp,startup_indirect_dispatch_warp). The mesh test ran and passed on WARP here; it was not skipped.Mutations (each applied as a patch on top of the exact head, run on Windows Server 2025 Debug, then discarded; the checkout stayed clean):
desktop_stream_size: the mesh subobject size 24 changed to 16.startup_indirect_mesh_warpFAILED. Caught.list_execute_indirect:|| pass.indirect_graphics.mesh != meshremoved. 4/4 still passed. NOT caught (P3 a).build_stream_pipeline: the mesh stream-output refusal (if (output->NumEntries || output->NumStrides)) changed toif (false). 4/4 still passed. NOT caught (P3 b).build_stream_pipeline:supported = mesh ? !is_vertex && readable_shader_container(*code)changed to drop!is_vertex(a VS accepted in a mesh stream). 4/4 still passed. NOT caught (P3 c).What I checked by reading:
build_stream_pipeline; AS (24) is still refused as an unknown subobject.meshis a property of the stream, stored inIndirectGraphicsPipeline, andlist_execute_indirectrequires it to equal the signature kind, so a rootless DispatchMesh signature cannot run a VS/PS pipeline in the normal path.SKIP_RETURN_CODE 77(CMakeLists.txtstartup_indirect_mesh_${backend}), so a WARP that loses mesh support would show as Skipped, not Failed.P3 (optional, not blocking):
src/startup_stubs/d3d12_xs_device.cpp:1966: nothing runs a Draw/DrawIndexed pipeline with the mesh signature (or the reverse), so the newpass.indirect_graphics.mesh != meshguard is untested. One extra refusal case intests/startup_indirect_draw_indexed.cppwould cover it.src/startup_stubs/d3d12_xs_device.cpp(mesh stream-output refusal) and (c) the VS-in-mesh-stream refusal: no case feeds such a stream, so neither refusal is guarded. The native pipeline creation may reject them anyway, but then the wrapper's own message and fallback are what the guest sees.Limits: only WARP was available here (hardware adapter coverage is not claimed by the PR either). The Windows runs used the Debug and Release presets but the mutations ran on Debug only.
AI-assisted; commands listed were executed locally.