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:
authorVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 16:42:01 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 16:42:01 +0100
commitea9dcd17970d7b8d689f36178910a15390d483e8 (patch)
tree10a25590773c643fe6bc0c1657fab03fb1d61381 /runtime/shims/d3d12_com.cpp
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
fix(runtime): trace D3D12 compute command calls
Startup traces need to show whether compute setup reaches Dispatch before a graphics draw.
Diffstat (limited to 'runtime/shims/d3d12_com.cpp')
-rw-r--r--runtime/shims/d3d12_com.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/shims/d3d12_com.cpp b/runtime/shims/d3d12_com.cpp
index 55c6f86a8..b490f7ab0 100644
--- a/runtime/shims/d3d12_com.cpp
+++ b/runtime/shims/d3d12_com.cpp
@@ -217,6 +217,7 @@ public:
217 // Root signatures, pipeline state and root arguments. The arguments are packed into the 32 user-data dwords 217 // Root signatures, pipeline state and root arguments. The arguments are packed into the 32 user-data dwords
218 // the translated shaders read (root_signature.h; docs section 3.5); a draw or dispatch records a copy. 218 // the translated shaders read (root_signature.h; docs section 3.5); a draw or dispatch records a copy.
219 void STDMETHODCALLTYPE SetComputeRootSignature(ID3D12RootSignature* signature) override { 219 void STDMETHODCALLTYPE SetComputeRootSignature(ID3D12RootSignature* signature) override {
220 d3d12_trace::record("ID3D12GraphicsCommandList::SetComputeRootSignature");
220 bind_root(compute_, signature); 221 bind_root(compute_, signature);
221 } 222 }
222 void STDMETHODCALLTYPE SetGraphicsRootSignature(ID3D12RootSignature* signature) override { 223 void STDMETHODCALLTYPE SetGraphicsRootSignature(ID3D12RootSignature* signature) override {
@@ -270,6 +271,7 @@ public:
270 } 271 }
271 272
272 void STDMETHODCALLTYPE Dispatch(UINT x, UINT y, UINT z) override { 273 void STDMETHODCALLTYPE Dispatch(UINT x, UINT y, UINT z) override {
274 d3d12_trace::record("ID3D12GraphicsCommandList::Dispatch");
273 if (!compute_pipeline_ || !compute_.layout) return check(false); 275 if (!compute_pipeline_ || !compute_.layout) return check(false);
274 check(list_.dispatch({compute_pipeline_, compute_.data, x, y, z})); 276 check(list_.dispatch({compute_pipeline_, compute_.data, x, y, z}));
275 } 277 }