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:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 09:48:16 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 09:48:16 -0500
commit3b7cd5e4bf771061885d6b8bcd8a3610e68aaae7 (patch)
tree8518b7c431cd824a07a43b2f87fe03b3e72085ae /runtime/shims/d3d12_com.cpp
parentcd6d8ac35a2a73db77885df2d3aa20afc407a171 (diff)
parent2d2eec9a75e3f98cf26b6a55df58d0bd90366ba3 (diff)
Merge pull request #1791 from AlxcBTW
Diffstat (limited to 'runtime/shims/d3d12_com.cpp')
-rw-r--r--runtime/shims/d3d12_com.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/shims/d3d12_com.cpp b/runtime/shims/d3d12_com.cpp
index 581bc0fa9..a87197130 100644
--- a/runtime/shims/d3d12_com.cpp
+++ b/runtime/shims/d3d12_com.cpp
@@ -601,6 +601,11 @@ public:
601 cmd.argument_offset = argument_buffer_offset; 601 cmd.argument_offset = argument_buffer_offset;
602 cmd.count_buffer = count_buffer ? resource_id(count_buffer) : 0; 602 cmd.count_buffer = count_buffer ? resource_id(count_buffer) : 0;
603 cmd.count_offset = count_buffer ? count_buffer_offset : 0; 603 cmd.count_offset = count_buffer ? count_buffer_offset : 0;
604 if (kind == leonida::IndirectKind::dispatch && max_command_count) { // the pipeline and root arguments a Dispatch would record
605 if (!compute_pipeline_ || !compute_.layout) return check(false);
606 cmd.pipeline = compute_pipeline_;
607 cmd.user_data = compute_.data;
608 }
604 check(list_.execute_indirect(cmd)); 609 check(list_.execute_indirect(cmd));
605 } 610 }
606 611
@@ -1261,7 +1266,8 @@ HRESULT create_command_list(D3D12_COMMAND_LIST_TYPE type, ID3D12CommandAllocator
1261 if (!command_allocator || command_allocator->type() != type) return E_INVALIDARG; 1266 if (!command_allocator || command_allocator->type() != type) return E_INVALIDARG;
1262 // A list is created open, so the allocator must be free: E_INVALIDARG as on the PC runtime (D3D-51). 1267 // A list is created open, so the allocator must be free: E_INVALIDARG as on the PC runtime (D3D-51).
1263 if (command_allocator->recording()) return E_INVALIDARG; 1268 if (command_allocator->recording()) return E_INVALIDARG;
1264 if (type != D3D12_COMMAND_LIST_TYPE_DIRECT && type != D3D12_COMMAND_LIST_TYPE_BUNDLE) 1269 if (type != D3D12_COMMAND_LIST_TYPE_DIRECT && type != D3D12_COMMAND_LIST_TYPE_BUNDLE &&
1270 type != D3D12_COMMAND_LIST_TYPE_COMPUTE && type != D3D12_COMMAND_LIST_TYPE_COPY)
1265 stub("create_command_list(non-direct type)"); 1271 stub("create_command_list(non-direct type)");
1266 auto* object = new GraphicsCommandList(type); // created open, as D3D12 does 1272 auto* object = new GraphicsCommandList(type); // created open, as D3D12 does
1267 object->record_into(command_allocator); 1273 object->record_into(command_allocator);