upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/d3d12_com.cpp
diff options
context:
space:
mode:
authorNiiRoZz <simonin.remi25@gmail.com>2026-11-23 17:29:49 +0100
committerNiiRoZz <simonin.remi25@gmail.com>2026-11-23 17:31:00 +0100
commitefc347830b9ccf1461baf9a764ac9e5e911de8f6 (patch)
tree22bbd633348cccaff79eda43a1764e95ff77a720 /runtime/shims/d3d12_com.cpp
parent8575d36edc479218972497a7bded8651a42856c0 (diff)
d3d12: CreateCommandSignature creates a DISPATCH_MESH signature on a device with mesh shaders
The Vulkan layer created signatures for draw, draw-indexed and dispatch only and answered E_NOTIMPL for DISPATCH_MESH, which the PC runtime creates on any mesh-shader tier 1 device. A title that creates such a signature at startup and asserts on the result stopped there. The signature is created when the device has VK_EXT_mesh_shader (MeshShaderTier 1), as a new IndirectKind::dispatch_mesh (the name and value #3777 uses, so the two merge). ExecuteIndirect with it records nothing yet and says so once; #3777 replays it as vkCmdDrawMeshTasksIndirectEXT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/shims/d3d12_com.cpp')
-rw-r--r--runtime/shims/d3d12_com.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/shims/d3d12_com.cpp b/runtime/shims/d3d12_com.cpp
index 4dd766b31..f31aac716 100644
--- a/runtime/shims/d3d12_com.cpp
+++ b/runtime/shims/d3d12_com.cpp
@@ -775,6 +775,15 @@ public:
775 } else if (count_buffer_offset != 0) { 775 } else if (count_buffer_offset != 0) {
776 return check(false); 776 return check(false);
777 } 777 }
778 if (kind == leonida::IndirectKind::dispatch_mesh) {
779 // Not replayed yet (#3777 replays it as vkCmdDrawMeshTasksIndirectEXT): nothing is recorded, and the
780 // first such call says so. The list stays valid.
781 static std::atomic<bool> logged{false};
782 if (!logged.exchange(true, std::memory_order_relaxed))
783 std::fprintf(stderr, "[rt] d3d12: ExecuteIndirect with a DISPATCH_MESH signature is not replayed yet; "
784 "nothing was recorded\n");
785 return;
786 }
778 if (max_command_count) { 787 if (max_command_count) {
779 const UINT64 record_size = 788 const UINT64 record_size =
780 kind == leonida::IndirectKind::draw ? sizeof(D3D12_DRAW_ARGUMENTS) 789 kind == leonida::IndirectKind::draw ? sizeof(D3D12_DRAW_ARGUMENTS)