Repository navigation
Conversation
…ewport early return Defer ID3D12GraphicsCommandList6::DispatchMesh in D3D12_COMMAND_LIST_TYPE_BUNDLE via defer(..., true) into a private record_dispatch_mesh helper, matching DrawInstanced/DrawIndexedInstanced/Dispatch so bundles can record mesh draws and replay them without duplicate trace lines. Check list_.closed() before the empty-viewport early return in record_dispatch_mesh so calling DispatchMesh on an already-closed direct list consistently marks the list invalid regardless of whether a viewport was bound. Add bundle DispatchMesh (inherited PSO/root signature, initial PSO, bundle-set PSO, oversized grid) and closed-list DispatchMesh coverage in d3d12_mesh_test. AI-assisted (Gemini 4 Neon).
|
Tested
AI-assisted. |
|
Independent synthetic Windows verification of #7487 (bf96608) on current main 867d922 with #8200 (95597e4), #7256 (e83aa4e) and #7112 (9e9bb63). Those three PRs were common to both builds. Windows 11 build 26200, native x64 Release, MSVC 19.51, Vulkan Headers 1.4.363, Khronos validation 1.4.357 and LEONIDA_VK_VALIDATION=1. The Radeon gfx1036 (32.0.21042.62) and RTX 5090 (617.42) both ran the mesh section. AI-assisted.
The local diagnostic runs the closed DIRECT cases first and checks the queue result to distinguish the two implementations. The separately built control has byte-identical fixture source and leaves d3d12_com.cpp at main. The patched build also passed the oversized-grid and closed BUNDLE checks, and matched all 4,096 pixels in the original direct draw. The patched mesh diagnostic passed three times per GPU with zero Vulkan validation errors. All five focused CTests also passed three times per GPU: d3d12_mesh, d3d12_com, d3d12_close_parity, d3d12_bundle and d3d12_bundle_forbidden. |
Claim: #7231 (comment)
Summary
ecord_dispatch_mesh so calling DispatchMesh on an already-closed direct list consistently flags invalid_ regardless of whether a viewport was bound.
untime/shims/d3d12_com.cpp (no changes to COPY/COMPUTE queue-type checks or other draw/dispatch methods).
Empirical D3D12 Verification (Windows 11, RTX 5090 + WARP, ms_6_5/ps_6_5)
Tests (NVIDIA GeForce RTX 5090, LEONIDA_VK_VALIDATION=1)
AI-assisted (Gemini 4 Neon).