d3d12: the title's startup command signatures are created (argument type 105, DISPATCH_MESH), again (RT-SLOT41) #377
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!377
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/377/head"
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?
@Mumogg on GitHub · 2026-11-24 04:11 UTC · original
Mumogg:slot41-command-signatures→main· +142 −5 · 8 files · 5 commits · merged 2026-11-24 22:52 UTCClaimed in #14 as
RT-SLOT41. Depends on: #349, #350, #356, #362, #369, #375 (their commits come first here; this pull request is the last three commits).What and why
After #375 the title creates five one-argument command signatures at startup through device slot 41 (
CreateCommandSignatureat its PC position) and stops when one is refused: its device set-up returns false and it hits its ownint3. Two of the five are refused onmain:4c04c0f4eDISPATCH; slot 41 gets its own handler084c8c60eefc347830DISPATCH_MESHsignature on a device with mesh shaders;ExecuteIndirectwith it records nothing yet and says so onceAll three are cherry-picked with
-xand keep their authors; all are ancestors ofmainwhose content is not in the tree. Conflicts were neighbours only (slot lists, the mock's cases), except one: ind3d12_com.cppthe last commit carried a copy of the argument-range validation thatmainno longer has at that place, so I kept only its early return forDISPATCH_MESH.I applied them one at a time: with the first two alone the run still ends at the same stop, and the third is what lets it go on. So both refusals are real here.
Measured
Linux (Nobara 44, kernel 7.3), Wine 11.21 staging, RTX 5070 Ti (driver 615.78.08), clang-cl 22.1.8 + xwin SDK 10.0.26100, own 1.0.2.1 copy, network off, on
mainece4ba5b3, with #142 and #328 applied on top for the boot runs (they are not in this branch).--runint3after its device set-up returns false; last slot called: 41The count of traced D3D12 calls is 1,655 in both (
CreateCommandSignatureis not one of the traced calls). The log lineslot 41 argument type 105 (stride 12) created as DISPATCHappears once. The next stop is device slot 61, forwarded as it is; on the console that slot writes a sampler to a descriptor handle.xs_proxy_mock_testunder Wine passes, with the slot 41 case (type 105 reaches the PC slot as a copy withDISPATCH).d3d12_mesh_testunder Wine passes on the RTX 5070 Ti (mesh tier 1), with the commit'sDISPATCH_MESHsignature case.Not built with MSVC and not run on Windows.
AI-assisted (Claude Code); built and run on the machine above.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
@ubiquitarianism on GitHub · 2026-11-24 04:51 UTC · original
Holding this, and the PRs stacked on it (#383, #385, #391, #395, #396), on one regression. The
d3d12_com.cppconflict resolution drops main's ExecuteIndirect validation: the record-size, stride andmax_count * stridespan checks frome1ec785b2. That block is still on main at that spot, andd3d12_execute_indirect_validation_test's out-of-bounds and stride cases depend on it. It also matters for every D3D12 user, not just the retail boot.Please restore the block, add
dispatch_mesh ? sizeof(D3D12_DISPATCH_MESH_ARGUMENTS)to the record-size chain, and put the DISPATCH_MESH early return after the checks.Two small notes for the PRs above it:
desttoproxy_create_sampler_xuntranslated; it should go throughtranslate_cpu_handlefrom #375.S_OKstand-in and #395's recorded-but-never-called allocator callback need a row indocs/d3d12_vulkan.md/docs/retail_boot_chain.md.#362, #369 and #375 are being merged after a Windows build.
@Mumogg on GitHub · 2026-11-24 09:54 UTC · original
Fixed, and sorry for that one: resolving the cherry-pick I dropped
main's block.ExecuteIndirecthas the record-size, stride and span checks back exactly as onmain, the record-size chain hasdispatch_mesh ? sizeof(D3D12_DISPATCH_MESH_ARGUMENTS), and the DISPATCH_MESH early return comes after the checks. The diff ofd3d12_com.cppagainstmainin that function is now only those two additions.d3d12_execute_indirect_validationandd3d12_meshpass under Wine (RTX 5070 Ti, driver 615.78.08).translate_cpu_handle.docs/d3d12_vulkan.md, both marked as stand-ins, with what is open.Everything from #375 to #432 is rebased on
maind7576d56a; #375 has the scoping for the three Windows failures (details there; I cannot rundevice_proxy_testunder Wine, it needs WARP).AI-assisted.
@aslan2142 on GitHub · 2026-11-24 22:52 UTC · original
Merged. Mumogg is still away and this is the next rung on
main's boot path (device slot 41, where the title stops once #375 is in), so I brought the branch up to date the same way as #375: one merge commit ofmain(9f25f1ef2) on top of88b8dbad9(438859b52). Mumogg's commits are untouched and nothing was force-pushed.Conflicts: two.
runtime/shims/d3d12_com.cpp:ExecuteIndirectkeepsmain's argument-range rule from #1066 with its comment, and this PR'sDISPATCH_MESHearly return follows the checks. The PR's oldermax_count * stridecheck is gone, because #1066 replaced it onmain.docs/d3d12_vulkan.md: both table rows kept (argument type 105, then slot 81 /PresentX).The hold (the owner's comment of 04:51 UTC, answered by Mumogg in
88b8dbad9): its three points are in the merged code.dispatch_mesh ? sizeof(D3D12_DISPATCH_MESH_ARGUMENTS).DISPATCH_MESHreturn comes after the checks.d3d12_execute_indirect_validationpasses on both devices.Tests (Linux; clang-cl with the xwin SDK; Wine, headless; llvmpipe and an RDNA2 iGPU):
ctest: 72 pass and 2 skipped, onmainand on the branch.main9f25f1ef2: no test changed state on either device.main89d7dfcf5+ the branch, against a baseline of the samemain(it had moved by tworuntime/merges, #615 and #992): the iGPU run is unchanged; on llvmpipe one test,run_tiny_gdk_load, failed once and passes when the 17run_tiny*tests are re-run alone on the same build, so it was a collision between the two parallel device runs.xs_proxy_mockpasses on both devices.d3d12_meshpasses on llvmpipe with the new case, and fails on the iGPU at a pipeline-statistics check exactly as onmain.Notes for later, none blocking:
DISPATCHis marked as a hypothesis in this PR, and a meshExecuteIndirectrecords nothing yet (it is logged once).#3777, a number from the old repository that links nowhere now.#383 is the next rung.
AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).