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 23:14:47 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:14:47 -0500
commit78bdbf6ed9c2179ced595615da192504c8c0838b (patch)
tree274bce131927b6487da01c951841ef0760e66817 /runtime/shims/d3d12_com.cpp
parent26ae80f6a5856986a349442190e26be11e64d00f (diff)
parenta5412e0d736f71b273f299475c2d37710dfe2709 (diff)
Merge pull request #4445 from pmilewsskiedu-gif
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.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/shims/d3d12_com.cpp b/runtime/shims/d3d12_com.cpp
index 9ab8aa3cd..55b523d96 100644
--- a/runtime/shims/d3d12_com.cpp
+++ b/runtime/shims/d3d12_com.cpp
@@ -1761,7 +1761,11 @@ HRESULT set_event_on_multiple_fence_completion(leonida::VulkanContext& context,
1761 wait.semaphoreCount = count; 1761 wait.semaphoreCount = count;
1762 wait.pSemaphores = semaphores.data(); 1762 wait.pSemaphores = semaphores.data();
1763 wait.pValues = values; 1763 wait.pValues = values;
1764 return context.vk.vkWaitSemaphores(context.device(), &wait, UINT64_MAX) == VK_SUCCESS ? S_OK : E_FAIL; 1764 const VkResult result = context.vk.vkWaitSemaphores(context.device(), &wait, UINT64_MAX);
1765 // Unlike a single fence's blocking SetEventOnCompletion, this path invokes Vulkan directly.
1766 // A lost device must wake its other registered fence waiters and reject later submissions.
1767 if (result == VK_ERROR_DEVICE_LOST) context.mark_device_lost();
1768 return result == VK_SUCCESS ? S_OK : E_FAIL;
1765 } 1769 }
1766 // Each fence's own waiter thread counts the shared waiter down; no thread of its own. 1770 // Each fence's own waiter thread counts the shared waiter down; no thread of its own.
1767 const auto waiter = std::make_shared<FenceWaiter>(event, any ? 1u : count); 1771 const auto waiter = std::make_shared<FenceWaiter>(event, any ? 1u : count);