mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #377] [MERGED] d3d12: the title's startup command signatures are created (argument type 105, DISPATCH_MESH), again (RT-SLOT41) #429
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#429
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/377
Author: @Mumogg
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142
Base:
main← Head:slot41-command-signatures📝 Commits (5)
c8247cdd3d12_xs: a console indirect argument of type 105 is created as DISPATCH (slot 41)69b46dfd3d12_xs: read the console argument type as its 32 bits (clang-cl)d1f8a65d3d12: CreateCommandSignature creates a DISPATCH_MESH signature on a device with mesh shaders88b8dbad3d12: ExecuteIndirect keeps main's argument validation; DISPATCH_MESH has a record size and returns after it438859bMerge main into RT-SLOT41 (#377)📊 Changes
8 files changed (+142 additions, -5 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+1 -0)📝
runtime/shims/d3d12_com.cpp(+10 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+5 -0)📝
runtime/shims/d3d12_xs_device.cpp(+57 -1)📝
runtime/shims/d3d12_xs_device.h(+2 -0)📝
runtime/src/command_list.h(+3 -0)📝
runtime/test/d3d12_mesh_test.cpp(+22 -0)📝
runtime/test/xs_proxy_mock_test.cpp(+42 -4)📄 Description
Claimed 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.