Repository navigation
Capture slot 57 indirect mesh translation requests - #2253
Conversation
tedin7
left a comment
There was a problem hiding this comment.
Review of head c50fa24258030857797a20559dba0ff56dc27649 (7 files, +223/-5). CI was still pending when I looked, so the Windows jobs are not covered here. I did not run the Windows WARP/hardware tests (startup_indirect_mesh_request_*). They need a Windows run before this is ready.
Commands executed locally (Linux), all rc=0:
python3 tests/startup_gfx2hlsl_watch_check.py->startup_gfx2hlsl_watch_check passedpython3 tests/docs_links_check.py->Checked 18 Markdown files and 419 links.python3 tests/bidi_controls_check.py->no bidirectional controlsgit diff --check origin/main...HEAD-> clean
Findings:
P2 (tests, tests/startup_gfx2hlsl_watch_check.py ~L80-110): three mutations of the new reader survived, and the watch check still passed.
- In
inspect_mesh57_request(tools/startup/gfx2hlsl.py), dropping the'target_20' not in exportscondition. No fixture has a mesh stage with a position export but no primitive export. - In
inspect_mesh57_request, replacingif op.startswith('ds_')withif False. No fixture contains ads_*op, so the workgroup-memory refusal is never exercised. - In
pending_keys, removing them57exemption from the "already done" skip. No fixture covers an.m57request that has a stale.txtand.cso.
Please add a fixture for each. Each is small and uses the existingmesh57_fixturehelper.
P2 (ordering, inspect_mesh57_request): the ds_ refusal runs after the pixel-stage check, and the final Unsupported is unconditional. This is consistent today. Still, the ds_ refusal is dead until the previous point is fixed, so the "mesh workgroup memory" message can never surface in practice.
Nit (d3d12_draw.inl, request_slot57_mesh): written is only inserted after all three publishes succeed. A partial failure (for example .ps57 and .root written, .m57 failed) is retried on the next call, which is fine. Because .m57 is written last, the scanner never sees a partial request.
Nit (d3d12_xs_device.cpp, list_execute_indirect): when mesh is true but the list is not DIRECT, or the pipeline is real, neither branch runs. That seems intended, but a one-line comment would help.
Clean-room and title: neutral title, no model names, MIT-compatible content. Mergeable, not draft.
AI-assisted; commands listed were executed locally.
|
The slot 57 follow-up is available as one commit on an integration branch with this PR and tedin7's #2142 commits. It depends on both PRs and retains main's retired-wave handling from #2241. The mesh request reader now runs the bounded two-wave LDS evaluator as a diagnostic. The request format stays compatible. Because the request lacks verified mesh entry bindings, the evaluator uses synthetic inputs for the diagnostic and the runtime keeps these requests unforwarded. A local replay reached the LDS store-completion check for all 32 captures (29 distinct requests). An offline control with an explicit store-completion wait reached the distinct-barrier rejection for all 32. These replay inputs and logs stay local.
|
Refs #1759 and #1760.
A recognized indirect mesh command on a direct list can publish the fixed slot 57 mesh program, optional pixel program and recorded root signature. The root must be the same one bound to the list and the vertex slot must be empty. Slot 55 derivatives reuse the slot 57 base. The cache uses a separate length-framed key and writes the mesh marker last. The watcher validates roles and reports the first unsupported workgroup-memory instruction where present. The shim leaves these commands unforwarded while mesh code emission and resource binding are pending.
Windows 11 build 26200.9974 passed 8/8 Release CTests with no skips. WARP 10.0.26100.9818 and RTX 4060 Laptop GPU 32.0.16.1656 both ran with the D3D12 debug layer enabled. Each published one paired request and one mesh-only request with exact bytes. A mismatched root, populated vertex slot and incomplete pixel span each left the cache empty. All slot 57 controls retained the clear target and argument guards. The Python watcher test passed, including a missing marker, vertex code under either mesh or pixel role, and a tampered key.