[idd] d3d12: signal reusable command slots

Signal a per-slot event after callbacks finish and the command slot has
returned to the free state. This removes the one millisecond polling delay
when candidate state becomes visible just before its slot is reusable.
This commit is contained in:
Geoffrey McRae
2026-08-06 11:38:53 +10:00
parent 3e6c9197f1
commit 0a04dc4964
2 changed files with 27 additions and 2 deletions

View File

@@ -65,6 +65,7 @@ class CD3D12CommandSlot
std::atomic<State> m_state = STATE_FREE;
std::atomic<bool> m_submitted = false;
HandleT<HANDLENullTraits> m_event;
HandleT<HANDLENullTraits> m_availableEvent;
HANDLE m_waitHandle = INVALID_HANDLE_VALUE;
bool m_needsReset = false;
UINT64 m_fenceTarget = 0;