mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #1720] d3d12: allow queue submissions during fallback clock calibration #1735
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#1735
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/1720
Author: @PyZikYG
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:d3d12-calibration-queue-progress📝 Commits (1)
c6817c3d3d12: allow queue submissions during fallback clock calibration📊 Changes
3 files changed (+165 additions, -26 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+4 -3)📝
runtime/shims/d3d12_com.cpp(+63 -22)📝
runtime/test/d3d12_fence_timing_test.cpp(+98 -1)📄 Description
Claimed as D3D-CLOCK-CALIBRATION-SUBMIT.
Summary
Fallback
GetClockCalibrationused to hold the device-wide Vulkan submission lock across queue-idle waits. A slow calibration could block submissions from every D3D12 queue on the device.Drain prior work with an empty submission and wait for that marker and the timestamp sample on a private timeline outside the submission lock. The timestamp submission remains bracketed by QPC reads. If a host wait fails, the next call retires the outstanding sample before reusing the command buffer.
Verification
Checked clock pairing, queue submissions while a calibration wait is paused, and retry after an injected host wait failure. Also ran the fence event coverage.
AI-assisted: yes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.