mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1455] d3d12: preserve same-value retry after a failed fence signal (D3D-FENCE-SIGNAL-RETRY) #1485
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1485
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
7ce510dd3d12: 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::SignalorID3D12CommandQueue::Signalpreviously 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
vkSignalSemaphoreandvkQueueSubmit. 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.