Repository navigation
d3d12_vulkan.md: resources are CONCURRENT when dedicated queue families are in use - #5522
Pierre-Kookis wants to merge 2 commits into
Conversation
…es are in use Section 4.x still said every D3D12 queue is in the graphics family and resources are EXCLUSIVE. Compute/copy queues use dedicated families when the GPU has them (queue_families.h), and buffers, images, the arena and staging are then created CONCURRENT over those families, as section 4 already documents.
|
AI-assisted review of e351910. The sharing rule is correct for the families the runtime selects. Please change “dedicated compute/copy families when the GPU has them” to “dedicated compute or copy families when the runtime selects them.” The test at I built |
|
Heads-up @Pierre-Kookis: this sentence ( |
…(review) With sparse binding enabled the runtime can keep compute/copy on the graphics family even when the GPU has dedicated ones (d3d12_vulkan_device.cpp ~8231), so say 'when the runtime selects them'.
|
@shdann thanks, agreed: with sparse binding the runtime keeps compute/copy on the graphics family even when the GPU has dedicated ones ( |
Kam471
left a comment
There was a problem hiding this comment.
Review at head 2f5f316ca (docs only).
Verified against the code at 3faac557b:
runtime/src/queue_families.hexists;pick_queue_familiespicks a compute family without graphics and a DMA copy family with 1x1x1 granularity.d3d12_vulkan_device.cpp:8223selects it, and:8232-8251creates the extra family queues.DeviceState::share()(:469-480) setsVK_SHARING_MODE_CONCURRENToverfamilieswhen there is more than one, else leavesEXCLUSIVE; it is called from the buffer, image, arena and staging create sites (:1677,:1830,:2127,:4538).- The doc's own queue row (
docs/d3d12_vulkan.md:1699) already said this, so the edited paragraph now agrees with it. "section 4" resolves to## 4. Object model mapping.
Commands: python -I -m pytest tests/test_docs_*.py -q → 19 passed, 6 subtests. git diff --check clean.
Verdict: approve.
…ts them (sparse binding) With sparse buffers, a dedicated compute or transfer family without VK_QUEUE_SPARSE_BINDING_BIT is passed over for the graphics family (sparse_capable_queue_families). Pointed out by @Pierre-Kookis and @shdann on ItsNotRexed#5522. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claimed in the coordination issue: #5361.
Problem
docs/d3d12_vulkan.md:2272-2274(at3faac557) says resources areVK_SHARING_MODE_EXCLUSIVEand every D3D12 queue is in the graphics family, and that dedicated compute/transfer families "would needCONCURRENT". The same doc's queue row (:1699) and the code say otherwise:runtime/src/queue_families.h, selected inruntime/shims/d3d12_vulkan_device.cpparound:8223), else graphics-family leases;VK_SHARING_MODE_CONCURRENT(:477);runtime/test/vk_queue_test.cppchecks distinct families.Change
Doc only: the stale sentence now says resources are
CONCURRENTover the families in use when there is more than one, elseEXCLUSIVE, and that no ownership transfer is needed either way.Tested
python -I -m unittest discover -s tests -p "test_docs*.py": OK.AI-assisted (Claude Code + Codex; checked against the code). No game files.