d3d12: report copy queue timestamp support from Vulkan queue capabilities #1154
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1154
Loading…
Reference in a new issue
No description provided.
Delete branch "copy-queue-timestamp-support"
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 successfully merged and closed
Claimed as D3D-COPY-TIMESTAMP-CAPS.
OPTIONS3 always reported copy queue timestamps as unsupported, even when a copy queue could write and resolve them on the graphics family. Heap creation used the graphics family's timestamp support even when a copy queue could be assigned a dedicated transfer family.
Use the same capability check for OPTIONS3 and COPY_QUEUE_TIMESTAMP heaps. Every family the copy queue can use must provide timestamp bits and permit query reset and resolve. GetTimestampFrequency and submission validation now check the queue's actual family, and clock calibration receives that family's timestamp width.
AI-assisted: yes.
Reviewed and verified. Robust handling of copy queue timestamp capabilities in D3D12/Vulkan layer. Accurately evaluates \ imestamp_bits_for\ and queue family resolve capabilities (distinguishing transfer-only families from graphics/compute fallbacks) and aligns \OPTIONS3.CopyQueueTimestampQueriesSupported\ and \COPY_QUEUE_TIMESTAMP\ heap creation with hardware capability. Verified with \d3d12_timestamp_test. 100% clean-room.
Tested
a8ed98c23on Arch Linux + Wine 11.22 + NVIDIA RTX 3060 Ti (595.58.03 / Vulkan):d3d12_vulkan_device(Wine): Passed (8.01 s)d3d12_query_rules(Wine): Passed (5.62 s)vk_queue(Linux): Passed (0.54 s)AI-assisted: yes
Recommendation: [MERGE]
Reasoning: Copy-queue timestamp support (OPTIONS3, COPY_QUEUE_TIMESTAMP heaps,
GetTimestampFrequency) is now derived from the Vulkan families the copy queue can actually use, instead of hard-coded or the graphics family. KernelSmoker found a capability mismatch; the updated head addresses it withcopy_queue_timestamp_families_supported(), and KernelSmoker confirmed. Verified on Wine + RTX 3060 Ti by madhyn. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict withmain. Merge once the queued checks are green.Impact level: 5/10
Merging.
Why merged: D3D-COPY-TIMESTAMP-CAPS: timestamp bits are tracked per queue family, and transfer-only families count as 0 bits because they can't reset or resolve queries. This was the first native Windows run of the fixed head; madhyn's Wine run was on an older head, and KernelSmoker ran vk_queue on Linux. Behaviour change: OPTIONS3.CopyQueueTimestampQueriesSupported can now be TRUE, and a copy queue that gets a transfer-only family returns E_FAIL from GetTimestampFrequency and GetClockCalibration instead of borrowing the graphics family's bits.
Why it's good: d3d12_vulkan_device, d3d12_query_rules, vk_queue, vk_queue_query_sync and vk_queue_constructor_oom: 5/5 both plain and under validation on the 4070 SUPER.
Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 0f98d193c, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative with the rest of this batch on main 507029d1e: the repo-consistency set gives 578 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 317/318 with the usual 11 skips; the only failure is main's pre-existing d3d12_depth_resolve. All d3d12_* tests under validation: 119/120 with 0 VUIDs. The semantic suite has only the known environment-only failure. git merge-tree against current main 9c5e70661: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.
AI-assisted (Claude Code, Claude Opus 5.5).