[PR #377] [MERGED] d3d12: the title's startup command signatures are created (argument type 105, DISPATCH_MESH), again (RT-SLOT41) #429

Closed
opened 2026-11-26 20:17:51 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • c8247cd d3d12_xs: a console indirect argument of type 105 is created as DISPATCH (slot 41)
  • 69b46df d3d12_xs: read the console argument type as its 32 bits (clang-cl)
  • d1f8a65 d3d12: CreateCommandSignature creates a DISPATCH_MESH signature on a device with mesh shaders
  • 88b8dba d3d12: ExecuteIndirect keeps main's argument validation; DISPATCH_MESH has a record size and returns after it
  • 438859b Merge 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 (CreateCommandSignature at its PC position) and stops when one is refused: its device set-up returns false and it hits its own int3. Two of the five are refused on main:

Commit Author What
4c04c0f4e mrp1no a console indirect argument of type 105 (12-byte stride) is created as DISPATCH; slot 41 gets its own handler
084c8c60e mrp1no the type is read as its 32 bits, because a constant expression that casts 105 to the enum does not compile with clang-cl
efc347830 NiiRoZz the Vulkan layer creates a DISPATCH_MESH signature on a device with mesh shaders; ExecuteIndirect with it records nothing yet and says so once

All three are cherry-picked with -x and keep their authors; all are ancestors of main whose content is not in the tree. Conflicts were neighbours only (slot lists, the mock's cases), except one: in d3d12_com.cpp the last commit carried a copy of the argument-range validation that main no longer has at that place, so I kept only its early return for DISPATCH_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 main ece4ba5b3, with #142 and #328 applied on top for the boot runs (they are not in this branch).

--run Ends with
up to #375 the title's int3 after its device set-up returns false; last slot called: 41
+ this further on; the last new slot called is 61

The count of traced D3D12 calls is 1,655 in both (CreateCommandSignature is not one of the traced calls). The log line slot 41 argument type 105 (stride 12) created as DISPATCH appears 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_test under Wine passes, with the slot 41 case (type 105 reaches the PC slot as a copy with DISPATCH).
  • d3d12_mesh_test under Wine passes on the RTX 5070 Ti (mesh tier 1), with the commit's DISPATCH_MESH signature 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/377 **Author:** [@Mumogg](https://github.com/Mumogg) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `slot41-command-signatures` --- ### 📝 Commits (5) - [`c8247cd`](https://github.com/ubiquitarianism/leonida/commit/c8247cdfa384189ed28512aa157663f4db152273) d3d12_xs: a console indirect argument of type 105 is created as DISPATCH (slot 41) - [`69b46df`](https://github.com/ubiquitarianism/leonida/commit/69b46dfccbb84c55db31c41be6c752526c2160bd) d3d12_xs: read the console argument type as its 32 bits (clang-cl) - [`d1f8a65`](https://github.com/ubiquitarianism/leonida/commit/d1f8a6566d2c3a352603c0e72d3b00f6d2d7907d) d3d12: CreateCommandSignature creates a DISPATCH_MESH signature on a device with mesh shaders - [`88b8dba`](https://github.com/ubiquitarianism/leonida/commit/88b8dbad9d59aab22da34c49035bd7841c822633) d3d12: ExecuteIndirect keeps main's argument validation; DISPATCH_MESH has a record size and returns after it - [`438859b`](https://github.com/ubiquitarianism/leonida/commit/438859b525e8a4e8c55669da0252f143a6d49751) Merge main into RT-SLOT41 (#377) ### 📊 Changes **8 files changed** (+142 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 (`CreateCommandSignature` at its PC position) and stops when one is refused: its device set-up returns false and it hits its own `int3`. Two of the five are refused on `main`: | Commit | Author | What | |---|---|---| | `4c04c0f4e` | mrp1no | a console indirect argument of type 105 (12-byte stride) is created as `DISPATCH`; slot 41 gets its own handler | | `084c8c60e` | mrp1no | the type is read as its 32 bits, because a constant expression that casts 105 to the enum does not compile with clang-cl | | `efc347830` | NiiRoZz | the Vulkan layer creates a `DISPATCH_MESH` signature on a device with mesh shaders; `ExecuteIndirect` with it records nothing yet and says so once | All three are cherry-picked with `-x` and keep their authors; all are ancestors of `main` whose content is not in the tree. Conflicts were neighbours only (slot lists, the mock's cases), except one: in `d3d12_com.cpp` the last commit carried a copy of the argument-range validation that `main` no longer has at that place, so I kept only its early return for `DISPATCH_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 `main` `ece4ba5b3`, with #142 and #328 applied on top for the boot runs (they are not in this branch). | `--run` | Ends with | |---|---| | up to #375 | the title's `int3` after its device set-up returns false; last slot called: 41 | | + this | further on; the last new slot called is 61 | The count of traced D3D12 calls is 1,655 in both (`CreateCommandSignature` is not one of the traced calls). The log line `slot 41 argument type 105 (stride 12) created as DISPATCH` appears 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_test` under Wine passes, with the slot 41 case (type 105 reaches the PC slot as a copy with `DISPATCH`). - `d3d12_mesh_test` under Wine passes on the RTX 5070 Ti (mesh tier 1), with the commit's `DISPATCH_MESH` signature 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.com/claude-code) https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:51 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#429
No description provided.