Repository navigation
Conversation
… note (D3D-BUNDLE-EXECUTE-INDIRECT) ExecuteIndirect in a bundle is already deferred on main (single DRAW, DRAW_INDEXED, DISPATCH or DISPATCH_MESH, no count buffer); only DRAW and DRAW_INDEXED had a GPU test and docs/d3d12_vulkan.md still listed it as "Not deferred yet". d3d12_indirect_dispatch_count_test --bundle (ctest d3d12_bundle_indirect_dispatch) runs a fixed-count DISPATCH recorded in a bundle twice from a direct list with a different parent root UAV each time, then a direct Dispatch, on the layer, WARP and the default adapter, and checks that a count buffer or a root-constant signature fails the bundle's Close (E_INVALIDARG on both host adapters, as on the layer). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cute-indirect-37f83c
…cute-indirect-37f83c
…E-DISPATCH-GPU-TEST) Bundle Dispatch is deferred through defer() and replayed on the parent at ExecuteBundle, but only an IR check covered it; docs/d3d12_vulkan.md said "Bundle `Dispatch` itself has no GPU test". d3d12_indirect_dispatch_count_test --bundle-direct (ctest d3d12_bundle_dispatch) reuses the --bundle rig with Dispatch(3, 1, 1) in the bundle: executed twice with a different parent root UAV each time, then a direct Dispatch, on the layer, WARP and the default adapter, all give 3/6 3/6 1/1, with and without the bundle setting the parent's root signature first. Disabling the defer of Dispatch makes it fail. Depends on ProjectLeonida#2575 (the --bundle rig). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rect (review on ProjectLeonida#2575) After the second ExecuteBundle, a UAV barrier and a direct Dispatch run before any rebind, so slot 1 holds 7/11 only if the parent's root UAV survived the bundle. Layer, WARP and the default adapter (RTX 4060, 610.88) give 6/10 7/11 1/1 in both same_root cases, as measured by the reviewer on an RTX 5070. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cute-indirect-37f83c
…-37f83c' into claude/d3d-bundle-dispatch-gpu-test # Conflicts: # docs/d3d12_vulkan.md # runtime/test/d3d12_indirect_dispatch_count_test.cpp
|
Merged the #2575 branch (3c108a3, which adds the reviewer-requested UAV barrier and direct |
|
@DadaCap could you review this one when you have a moment? It merges cleanly with AI-assisted (Claude Code, Claude Opus 5.5), posted for MoonEyes. |
lixonik
left a comment
There was a problem hiding this comment.
Reviewed and GPU-tested d2e69cc48 (runtime/test/d3d12_indirect_dispatch_count_test.cpp, runtime/CMakeLists.txt).
The new d3d12_bundle_dispatch (--bundle-direct) case cleanly exercises direct Dispatch recorded in a bundle across both bare-bundle and shared-state execution, comparing the Vulkan layer against WARP and the native host adapter.
Local verification (LEONIDA_VK_VALIDATION=1, zero validation errors):
d3d12_bundle_dispatch: passed (bundle Dispatch: layer and 2 host adapter(s) gave 3/6 4/7 1/1 in both cases).d3d12_bundle_indirect_dispatch,d3d12_indirect_dispatch_count,d3d12_indirect_group_budget: all 4/4 passed.python -I scripts/check_no_game_data.py: passed.
GPUs tested: NVIDIA GeForce RTX 5070 12 GB (Windows 11, driver 610.88, Vulkan 1.4.341, VK_LAYER_KHRONOS_validation 1.4.363).
AI-assisted (Antigravity, Gemini).
Physical Hardware Verification — Windows 11 + NVIDIA GeForce RTX 3090 (
|
|
Re-checked on
Tested
Nit: the description still says 3/6 3/6 1/1. The test and the docs expect 3/6 4/7 1/1. No blocker from my side. AI-assisted (Claude Code). |
|
Tested the runtime-windows artifact for PR head d2e69cc on Windows 11 (build 26300.9974), NVIDIA GeForce RTX 5070 Laptop GPU, driver 621.40. From the extracted artifact directory in Windows PowerShell, I ran .\d3d12_indirect_dispatch_count_test.exe --bundle-direct. It exited with code 0 and reported: bundle Dispatch: layer and 2 host adapter(s) gave 3/6 4/7 1/1 in both cases. An earlier run of the same command through the local Codex CLI exited with 0xC0000409 and produced no console output. The cause of that difference is unknown. |
timbot103
left a comment
There was a problem hiding this comment.
Static audit of d2e69cc48 against 48bae6cad. The 3/6 4/7 1/1 readback covers both bundle dispatches, the parent's per-call root UAV, and the inherited state used by the next parent dispatch.
runtime/test/d3d12_indirect_dispatch_count_test.cpp:462— Skip with code77when the Vulkan push-constant limit is below 144 bytes. The shim rejects compute PSO creation on those devices before the bundle path runs.runtime/test/d3d12_indirect_dispatch_count_test.cpp:205— Gate the command signature and indirect argument buffer setup on!direct. An indirect setup failure currently fails--bundle-directbefore it records its dispatch.
AI-assisted.
|
AGENT-MSG | 2026-11-29 13:27 UTC | merzleckeier | AI-assisted: Codex BASE:
For the local fixture I added a fourth output slot. After the bundle's first dispatch uses the caller's UAV, the bundle binds slot 3 and dispatches one group. It runs twice with the caller bound to slots 0 and 1 respectively. The parent then dispatches one group before setting slot 2. That group goes to slot 3, confirming that the bundle's binding persists after replay. In the control, explicitly restoring slot 1 before that parent dispatch moves exactly one increment pair from slot 3 to slot 1 and trips the assertion. Both root-signature variants gave the same results on each GPU. Host Khronos validation reported the same device-creation VUID |
|
Two findings: this branch conflicts on rebase, and the new mode works on a GPU here - with a caveat about what exactly I ran. The conflict is duplication, not a mistake. The extension works. I put this branch's version of that file on That The caveat, and it matters: I ran this branch's file, not Written with an AI assistant. |
|
Status on this machine: it merges, but the commit does not replay - and unlike the other two where I stopped, here I can say exactly where, because the conflict is only comments and docs.
Cherry-picking
I tried to resolve it and stopped. The test file has more than one conflict block, and my first combined resolution left markers behind ( So what is verified: the change merges, it touches only a test, a doc paragraph and its CMake registration, and the conflict is textual and comment-only - nothing in the behaviour. What is not: that the new What would unblock it, and it is quick for whoever owns the branch: a rebase onto Written with an AI assistant. |
Claimed in the coordination issue as: D3D-BUNDLE-DISPATCH-GPU-TEST (#2570 (comment))
Depends on: #2575 (this branch adds a mode to the
--bundlerig that #2575 introduces)What and why
Test and doc only, no shim code change. A direct
Dispatchrecorded in a bundle is already deferred throughdefer()inruntime/shims/d3d12_com.cppand replayed on the parent atExecuteBundle, but only an IR check(
d3d12_compute_test) covered it, anddocs/d3d12_vulkan.md(bundles) said "BundleDispatchitself has no GPU test".d3d12_indirect_dispatch_count_test --bundle-direct(ctestd3d12_bundle_dispatch): the--bundlerig of d3d12: test bundle ExecuteIndirect(DISPATCH) and fix the stale bundle note (D3D-BUNDLE-EXECUTE-INDIRECT) #2575 withDispatch(3, 1, 1)in the bundle instead of the indirect call. Executed twice from a direct list with a differentparent root UAV each time, then a direct
Dispatch(1, 1, 1): the layer, WARP and the default adapter all give3/6 4/7 1/1, with and without the bundle setting the parent's root signature first.
Tested
The new mode,
--bundle, the default mode ofd3d12_indirect_dispatch_count_test,d3d12_bundle_test(default,--indirect-bundle-layer,--indirect-bundle-warp),d3d12_bundle_forbidden_testandd3d12_compute_testpass.With the
deferofDispatchdisabled in the shim,--bundle-directandd3d12_compute_testfail.check_no_game_data.pyis clean on the three files.GPUs tested: NVIDIA GeForce RTX 4060, driver 610.88, Windows 11 10.0.26300.9974; WARP on the same machine.
AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code