[PR #1455] d3d12: preserve same-value retry after a failed fence signal (D3D-FENCE-SIGNAL-RETRY) #1485

Open
opened 2026-11-26 20:21:25 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1455
Author: @PyZikYG
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: d3d12-fence-signal-retry


📝 Commits (1)

  • 7ce510d d3d12: preserve same-value retry after a failed fence signal

📊 Changes

4 files changed (+135 additions, -36 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+5 -2)
📝 runtime/shims/d3d12_com.cpp (+27 -15)
📝 runtime/src/vulkan_backend.h (+30 -18)
📝 runtime/test/d3d12_fence_device_lost_counter_test.cpp (+73 -1)

📄 Description

Claimed as D3D-FENCE-SIGNAL-RETRY.

Summary

A synchronous Vulkan failure in ID3D12Fence::Signal or ID3D12CommandQueue::Signal previously left the fence's highest accepted value advanced. Retrying the same value could return success without signalling anything, leaving a dependent queue held.

Publish the fence value after a successful CPU signal or admission to the command queue. Release retired references and run ready queue work after dropping the fence lock.

Verification

Injected transient failures in vkSignalSemaphore and vkQueueSubmit. Verified that the failed call leaves the fence value and waiting queue pending, and that retrying the same value releases the queue. Covered retries from the CPU, from the queue, and from the CPU after a queue submission fails.

AI-assisted: yes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1455 **Author:** [@PyZikYG](https://github.com/PyZikYG) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `d3d12-fence-signal-retry` --- ### 📝 Commits (1) - [`7ce510d`](https://github.com/ubiquitarianism/leonida/commit/7ce510d6e20a4d10ed48867386f7892471467914) d3d12: preserve same-value retry after a failed fence signal ### 📊 Changes **4 files changed** (+135 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+5 -2) 📝 `runtime/shims/d3d12_com.cpp` (+27 -15) 📝 `runtime/src/vulkan_backend.h` (+30 -18) 📝 `runtime/test/d3d12_fence_device_lost_counter_test.cpp` (+73 -1) </details> ### 📄 Description Claimed as [D3D-FENCE-SIGNAL-RETRY](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148508370). ### Summary A synchronous Vulkan failure in `ID3D12Fence::Signal` or `ID3D12CommandQueue::Signal` previously left the fence's highest accepted value advanced. Retrying the same value could return success without signalling anything, leaving a dependent queue held. Publish the fence value after a successful CPU signal or admission to the command queue. Release retired references and run ready queue work after dropping the fence lock. ### Verification Injected transient failures in `vkSignalSemaphore` and `vkQueueSubmit`. Verified that the failed call leaves the fence value and waiting queue pending, and that retrying the same value releases the queue. Covered retries from the CPU, from the queue, and from the CPU after a queue submission fails. AI-assisted: yes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1485
No description provided.