vulkan: depth24 scratch and the device marker buffer are shared across queue families (RT-QUEUE-FAMILY-SHARING-DEPTH24-MARKERS) #2489

Closed
Tyrannys wants to merge 1 commit from upstream-pr/2489 into main
Tyrannys commented 2026-11-27 18:23:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Tyrannys on 2026-11-27T18:23:40Z.


Claimed in the coordination issue as: RT-QUEUE-FAMILY-SHARING-DEPTH24-MARKERS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7225241757)

What and why

Items 1 and 2 of @kevincommits' finding in #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7224895432). Thanks for the audit.

The device's other shared pools get state_.families and call share_across_queue_families: ScratchBuffers, IndirectArgumentClamp and BindlessSet. Two buffers that every queue uses were still VK_SHARING_MODE_EXCLUSIVE, with no queue-family ownership transfer. On a GPU with separate graphics, async-compute and copy families, that use is invalid (Vulkan "Resource Sharing Mode").

  1. Depth24Converter scratch chunks (vulkan_depth24.h).
    • A chunk goes back to spare_ after its submission and is handed to the next copy, on whichever D3D12 queue that copy runs: direct, compute, or a compute-backed copy queue (#2469).
    • enable_depth24 and the converter now take the device's families. make_chunk calls share_across_queue_families(info, families_).
    • d3d12_vulkan_device.cpp passes state_.families, as enable_copy_scratch and enable_indirect_clamp already do just above it.
  2. The LEONIDA_DEVICE_MARKERS buffer (vulkan_device_markers.h).
    • Every queue writes its own slot with vkCmdWriteBufferMarker[2]AMD.
    • configure_device_fault, DeviceFaultDiagnostics and DeviceMarkers::create now take the families, and the buffer is shared across them.

The new parameters are optional and default to no families. With one family, or none given, both buffers stay EXCLUSIVE, as before (share_across_queue_families needs two or more). Callers and tests that construct these classes directly are unchanged.

Separate from #2469 (the depth24 barriers on a copy queue). This PR does not depend on it. Overlap, checked with git merge-tree:

  • No conflict with #1988 (vulkan_depth24.h) or #2469.
  • #2308 conflicts in vulkan_device_markers.h and its test, on adjacent lines only: its if (!get) check goes right below the new create signature, and its test additions sit next to the new case. Whichever lands second keeps both sides.

Not included: the early return before the query pool is destroyed in depth24_convert_test.cpp, which kevincommits also noted. That file is #2469's.

Tested

Windows 11, MSVC (VS 18), RelWithDebInfo, on main 43a9d562d.

  • New depth24_scratch_sharing_test (CPU, faked driver). prepare() makes one scratch chunk, and its VkBufferCreateInfo is checked:

    • families {0, 1, 2} and {0, 2}: CONCURRENT over them;
    • {0} and none: EXCLUSIVE.

    With main's vulkan_depth24.h the converter has no families parameter, so the test does not compile. With only the parameter threaded through and make_chunk left as on main, it fails on the first case.

  • vulkan_device_markers_test gains queue_family_sharing. Through DeviceFaultDiagnostics and through DeviceMarkers::create, the marker buffer is CONCURRENT over {0, 1, 2}, {0, 2} and {3, 1}, and EXCLUSIVE with {0}. With make_chunk's and create's EXCLUSIVE lines as on main, the new checks fail.

  • ctest -R "^(depth24_scratch_sharing|vulkan_device_markers|vulkan_device_fault|depth24_convert|vk_device_markers|vk_semaphore_lifetime|d3d12_depth24_draw)$": 7/7 pass. The GPU tests among them (depth24_convert, vk_device_markers, vk_semaphore_lifetime, d3d12_depth24_draw) run on the RTX 4070 SUPER, which has separate graphics, compute and transfer families; together they take about 12 s.

  • scripts/check_no_game_data.py: clean.

GPUs tested: profile M: NVIDIA GeForce RTX 4070 SUPER, 12 GB, desktop, driver 621.01, Windows 11

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5531321288 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2489). Originally posted by [Tyrannys](https://github.com/Tyrannys) on 2026-11-27T18:23:40Z. --- Claimed in the coordination issue as: RT-QUEUE-FAMILY-SHARING-DEPTH24-MARKERS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7225241757) ### What and why Items 1 and 2 of @kevincommits' finding in #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7224895432). Thanks for the audit. The device's other shared pools get `state_.families` and call `share_across_queue_families`: `ScratchBuffers`, `IndirectArgumentClamp` and `BindlessSet`. Two buffers that every queue uses were still `VK_SHARING_MODE_EXCLUSIVE`, with no queue-family ownership transfer. On a GPU with separate graphics, async-compute and copy families, that use is invalid (Vulkan "Resource Sharing Mode"). 1. **`Depth24Converter` scratch chunks** (`vulkan_depth24.h`). - A chunk goes back to `spare_` after its submission and is handed to the next copy, on whichever D3D12 queue that copy runs: direct, compute, or a compute-backed copy queue (#2469). - `enable_depth24` and the converter now take the device's families. `make_chunk` calls `share_across_queue_families(info, families_)`. - `d3d12_vulkan_device.cpp` passes `state_.families`, as `enable_copy_scratch` and `enable_indirect_clamp` already do just above it. 2. **The `LEONIDA_DEVICE_MARKERS` buffer** (`vulkan_device_markers.h`). - Every queue writes its own slot with `vkCmdWriteBufferMarker[2]AMD`. - `configure_device_fault`, `DeviceFaultDiagnostics` and `DeviceMarkers::create` now take the families, and the buffer is shared across them. The new parameters are optional and default to no families. With one family, or none given, both buffers stay `EXCLUSIVE`, as before (`share_across_queue_families` needs two or more). Callers and tests that construct these classes directly are unchanged. Separate from #2469 (the depth24 barriers on a copy queue). This PR does not depend on it. Overlap, checked with `git merge-tree`: - No conflict with #1988 (`vulkan_depth24.h`) or #2469. - #2308 conflicts in `vulkan_device_markers.h` and its test, on adjacent lines only: its `if (!get)` check goes right below the new `create` signature, and its test additions sit next to the new case. Whichever lands second keeps both sides. Not included: the early return before the query pool is destroyed in `depth24_convert_test.cpp`, which kevincommits also noted. That file is #2469's. ### Tested Windows 11, MSVC (VS 18), RelWithDebInfo, on `main` 43a9d562d. - New `depth24_scratch_sharing_test` (CPU, faked driver). `prepare()` makes one scratch chunk, and its `VkBufferCreateInfo` is checked: - families {0, 1, 2} and {0, 2}: `CONCURRENT` over them; - {0} and none: `EXCLUSIVE`. With `main`'s `vulkan_depth24.h` the converter has no families parameter, so the test does not compile. With only the parameter threaded through and `make_chunk` left as on `main`, it fails on the first case. - `vulkan_device_markers_test` gains `queue_family_sharing`. Through `DeviceFaultDiagnostics` and through `DeviceMarkers::create`, the marker buffer is `CONCURRENT` over {0, 1, 2}, {0, 2} and {3, 1}, and `EXCLUSIVE` with {0}. With `make_chunk`'s and `create`'s `EXCLUSIVE` lines as on `main`, the new checks fail. - `ctest -R "^(depth24_scratch_sharing|vulkan_device_markers|vulkan_device_fault|depth24_convert|vk_device_markers|vk_semaphore_lifetime|d3d12_depth24_draw)$"`: 7/7 pass. The GPU tests among them (`depth24_convert`, `vk_device_markers`, `vk_semaphore_lifetime`, `d3d12_depth24_draw`) run on the RTX 4070 SUPER, which has separate graphics, compute and transfer families; together they take about 12 s. - `scripts/check_no_game_data.py`: clean. GPUs tested: profile M: NVIDIA GeForce RTX 4070 SUPER, 12 GB, desktop, driver 621.01, Windows 11 AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lixonik commented 2026-11-27 21:10:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-27T21:10:43Z.

Review: APPROVED


Reviewed 9df6b03cc (vulkan_depth24.h, vulkan_device_markers.h, vulkan_device_fault.h, vulkan_backend.h, d3d12_vulkan_device.cpp, tests) and tested:

  • Passing state_.families into enable_depth24 and configure_device_fault -> DeviceMarkers::create and applying share_across_queue_families cleanly matches ScratchBuffers, IndirectArgumentClamp, and BindlessSet for multi-family devices (while keeping VK_SHARING_MODE_EXCLUSIVE when there is only one family).
  • Tested on Windows 11 (MSVC 19.44): vulkan_device_markers passed (0.04 s) and depth24_scratch_sharing passed (0.03 s).

Looks good to merge.

AI-assisted (Antigravity, Gemini).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6093382723 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2489#pullrequestreview-6093382723). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-27T21:10:43Z. **Review:** APPROVED --- Reviewed `9df6b03cc` (`vulkan_depth24.h`, `vulkan_device_markers.h`, `vulkan_device_fault.h`, `vulkan_backend.h`, `d3d12_vulkan_device.cpp`, tests) and tested: - Passing `state_.families` into `enable_depth24` and `configure_device_fault` -> `DeviceMarkers::create` and applying `share_across_queue_families` cleanly matches `ScratchBuffers`, `IndirectArgumentClamp`, and `BindlessSet` for multi-family devices (while keeping `VK_SHARING_MODE_EXCLUSIVE` when there is only one family). - Tested on Windows 11 (MSVC 19.44): `vulkan_device_markers` passed (0.04 s) and `depth24_scratch_sharing` passed (0.03 s). Looks good to merge. AI-assisted (Antigravity, Gemini).
timbot103 commented 2026-11-28 02:01:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-28T02:01:58Z.


Reviewed at head 9df6b03cc on Windows 11 (MSVC 2022 19.44).

Verification

  • Built depth24_scratch_sharing_test, vulkan_device_markers_test, and gta6rt.
  • depth24_scratch_sharing_test: passed.
  • vulkan_device_markers_test: passed.

Notes

  • Deduplicating direct/compute/copy queue families, skipping absent-family sentinels, and switching VK_SHARING_MODE_EXCLUSIVE vs VK_SHARING_MODE_CONCURRENT cleanly satisfies VkBufferCreateInfo sharing rules for both the depth24/RGB96 scratch pool and the AMD device-marker buffer (d3d12_vulkan_device.cpp:14601-15054, vulkan_depth24.h:153-174, vulkan_device_markers.h:171-212).

Approve.

AI-assisted review + local MSVC verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7232081894 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2489#issuecomment-7232081894). Originally posted by [timbot103](https://github.com/timbot103) on 2026-11-28T02:01:58Z. --- Reviewed at head `9df6b03cc` on Windows 11 (MSVC 2022 `19.44`). ### Verification - Built `depth24_scratch_sharing_test`, `vulkan_device_markers_test`, and `gta6rt`. - `depth24_scratch_sharing_test`: **passed**. - `vulkan_device_markers_test`: **passed**. ### Notes - Deduplicating direct/compute/copy queue families, skipping absent-family sentinels, and switching `VK_SHARING_MODE_EXCLUSIVE` vs `VK_SHARING_MODE_CONCURRENT` cleanly satisfies `VkBufferCreateInfo` sharing rules for both the depth24/RGB96 scratch pool and the AMD device-marker buffer (`d3d12_vulkan_device.cpp:14601-15054`, `vulkan_depth24.h:153-174`, `vulkan_device_markers.h:171-212`). Approve. AI-assisted review + local MSVC verification.
zmasi commented 2026-11-28 11:11:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T11:11:34Z.


@Tyrannys — thanks for catching the MSVC C2397 in our marker test. I checked 9df6b03cc merged with 2d4735682 on physical gfx906 / RADV Mesa 26.0.8, then tested that tree with ccaad2dd added.

Sharing works on two real queue families. I recorded the create infos passed to the driver: both the marker buffer and converter-owned depth scratch stayed EXCLUSIVE for one family. For families 0 and 1, main still created both as EXCLUSIVE; #2489 created both as CONCURRENT over exactly those two families. I did not submit cross-family work on the exclusive main buffers.

On both the PR merge and the combination, graphics family 0 converted 64 D24 words into scratch; family 1 copied the float payload and converted it back using the same retired/reused scratch handle and range. 64/64 float words and 64/64 returned D24 words matched, and each queue’s own marker pair read back correctly. The copy used the compute-capable family, not a third DMA family. Zero Khronos validation errors or sync hazards in this cross-family check.

Separate same-slot regression: depth24_scratch_sharing (mock create-info checks), the CPU marker tests, depth24_convert and vk_semaphore_lifetime passed. The stock vk_device_markers CTest uses a single family: main and #2489 alone both reported 10 write-after-write hazards (the layer’s cap) despite correct readbacks. With ccaad2dd, the marker CTest passed with zero validation errors on the legacy and synchronization2 marker paths, reading 5/5 then 8/8. Queue-family sharing and ordering repeated writes are distinct fixes.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7238387128 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2489#issuecomment-7238387128). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T11:11:34Z. --- @Tyrannys — thanks for catching the MSVC C2397 in our marker test. I checked `9df6b03cc` merged with `2d4735682` on physical gfx906 / RADV Mesa 26.0.8, then tested that tree with `ccaad2dd` added. **Sharing works on two real queue families.** I recorded the create infos passed to the driver: both the marker buffer and converter-owned depth scratch stayed `EXCLUSIVE` for one family. For families 0 and 1, main still created both as `EXCLUSIVE`; #2489 created both as `CONCURRENT` over exactly those two families. I did not submit cross-family work on the exclusive main buffers. On both the PR merge and the combination, graphics family 0 converted 64 D24 words into scratch; family 1 copied the float payload and converted it back using the same retired/reused scratch handle and range. **64/64 float words and 64/64 returned D24 words matched**, and each queue’s own marker pair read back correctly. The copy used the compute-capable family, not a third DMA family. Zero Khronos validation errors or sync hazards in this cross-family check. **Separate same-slot regression:** `depth24_scratch_sharing` (mock create-info checks), the CPU marker tests, `depth24_convert` and `vk_semaphore_lifetime` passed. The stock `vk_device_markers` CTest uses a single family: main and #2489 alone both reported 10 write-after-write hazards (the layer’s cap) despite correct readbacks. With `ccaad2dd`, the marker CTest passed with **zero** validation errors on the legacy and synchronization2 marker paths, reading 5/5 then 8/8. Queue-family sharing and ordering repeated writes are distinct fixes. AI-assisted.
timbot103 commented 2026-11-29 01:08:18 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-29T01:08:18Z.

Review: COMMENTED


Reviewed head 9df6b03cc. In runtime/shims/d3d12_vulkan_device.cpp, both buffer creation paths receive the deduplicated list of configured queue families. The helper in runtime/src/queue_families.h selects concurrent sharing with two or more families and leaves the create info exclusive with zero or one. The family arrays stay alive through each vkCreateBuffer call in runtime/src/vulkan_depth24.h and runtime/src/vulkan_device_markers.h.

I traced scratch retirement and reuse in runtime/src/vulkan_backend.h, the transfer and compute barriers in runtime/src/vulkan_replay.h, and marker writes to per-queue slots in runtime/src/vulkan_device_fault.h. The CPU tests in runtime/test/depth24_scratch_sharing_test.cpp and runtime/test/vulkan_device_markers_test.cpp check multi-family create infos and the exclusive fallback. I reviewed their CMake registration for Windows and Linux.

Static audit only. No builds, tests, or GPU runs performed as part of this review. No findings.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6100846656 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2489#pullrequestreview-6100846656). Originally posted by [timbot103](https://github.com/timbot103) on 2026-11-29T01:08:18Z. **Review:** COMMENTED --- Reviewed head `9df6b03cc`. In `runtime/shims/d3d12_vulkan_device.cpp`, both buffer creation paths receive the deduplicated list of configured queue families. The helper in `runtime/src/queue_families.h` selects concurrent sharing with two or more families and leaves the create info exclusive with zero or one. The family arrays stay alive through each `vkCreateBuffer` call in `runtime/src/vulkan_depth24.h` and `runtime/src/vulkan_device_markers.h`. I traced scratch retirement and reuse in `runtime/src/vulkan_backend.h`, the transfer and compute barriers in `runtime/src/vulkan_replay.h`, and marker writes to per-queue slots in `runtime/src/vulkan_device_fault.h`. The CPU tests in `runtime/test/depth24_scratch_sharing_test.cpp` and `runtime/test/vulkan_device_markers_test.cpp` check multi-family create infos and the exclusive fallback. I reviewed their CMake registration for Windows and Linux. Static audit only. No builds, tests, or GPU runs performed as part of this review. No findings. AI-assisted.
TheGeogeo commented 2026-11-29 14:17:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T14:17:47Z.


Tested 9df6b03cc merged (no commit) with main 8fb974878: MSVC 19.52, Windows 11 10.0.26300.
GPUs tested: NVIDIA GeForce RTX 3080, driver 621.40.

  • Green: vulkan_device_markers and depth24_scratch_sharing pass. The 295 relinked CTests pass, except xbox_present, which fails on main too (its resize case).
  • Red: with the five non-test files back to main, the tests do not compile (vulkan_device_markers_test.cpp(303): C2661, no DeviceFaultDiagnostics constructor takes 6 arguments). No runtime red was shown here, because the test needs the new parameter.
  • gta6rt links with nothing new over main: no new unresolved symbol, same imports.
  • Merge order: conflicts with #2308 (runtime/src/vulkan_device_markers.h and its test). Whichever lands second needs a rebase.
  • No game data check passes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7257192488 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2489#issuecomment-7257192488). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T14:17:47Z. --- Tested 9df6b03cc merged (no commit) with main 8fb974878: MSVC 19.52, Windows 11 10.0.26300. GPUs tested: NVIDIA GeForce RTX 3080, driver 621.40. - Green: `vulkan_device_markers` and `depth24_scratch_sharing` pass. The 295 relinked CTests pass, except `xbox_present`, which fails on main too (its resize case). - Red: with the five non-test files back to main, the tests do not compile (`vulkan_device_markers_test.cpp(303)`: `C2661`, no `DeviceFaultDiagnostics` constructor takes 6 arguments). No runtime red was shown here, because the test needs the new parameter. - `gta6rt` links with nothing new over main: no new unresolved symbol, same imports. - Merge order: conflicts with #2308 (`runtime/src/vulkan_device_markers.h` and its test). Whichever lands second needs a rebase. - No game data check passes. AI-assisted (Claude Code).
ammonium231 commented 2026-11-29 18:01:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ammonium231 on 2026-11-29T18:01:38Z.


RTX 3090 (621.40), validation on: 9df6b03cc merged onto main 4364a4fa6, 7/7 of the PR's depth24/marker/fault/semaphore ctest set pass, 0 validation errors. Plain main: the same 6 pre-existing tests pass.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7260150167 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2489#issuecomment-7260150167). Originally posted by [ammonium231](https://github.com/ammonium231) on 2026-11-29T18:01:38Z. --- RTX 3090 (621.40), validation on: 9df6b03cc merged onto main 4364a4fa6, 7/7 of the PR's depth24/marker/fault/semaphore ctest set pass, 0 validation errors. Plain main: the same 6 pre-existing tests pass.
merzleckeier commented 2026-11-29 18:35:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T18:35:50Z.


Independent native Linux cross-family check of 9df6b03cc merged onto 878b024f4 (tree 75e9d6379), extending the earlier two-family RADV check to a dedicated transfer family. CachyOS, clang 23.1.5, RTX 4070 SUPER / NVIDIA 620.73.04 and Radeon 610M / RADV Mesa 26.3.1. Khronos validation 1.4.363, including synchronization validation.

  • Depth24 scratch reuse: A 16×16 synthetic dispatch ran on graphics, then a different pattern ran on compute after retiring and collecting the first batch. The fixture observed exactly one converter scratch allocation and verified the same VkBuffer in both batches. On NVIDIA, sharing covered graphics/compute/transfer 0/2/1; the second readback followed a compute-to-transfer semaphore handoff and ran on family 1. RADV used 0/1/1, with sharing over the two distinct families. Both patterns matched all 256 reference words on both GPUs, with zero validation errors.
  • EXCLUSIVE control: The same fixture with no sharing families supplied still matched the first batch on graphics, then rejected the second-family use before submission.
  • Device markers: The stock marker test passed with sync validation on both plain main and the PR. A variant using distinct graphics and compute queues on the PR left the graphics marker slot at 5/5 and the compute slot at 8/8 on both GPUs, with zero validation errors. The two stock CPU sharing tests also passed.

Synthetic fixtures only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7260607348 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2489#issuecomment-7260607348). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-29T18:35:50Z. --- Independent native Linux cross-family check of `9df6b03cc` merged onto `878b024f4` (tree `75e9d6379`), extending the earlier [two-family RADV check](https://github.com/ProjectLeonida/mandy/pull/2489#issuecomment-7238387128) to a dedicated transfer family. CachyOS, clang 23.1.5, RTX 4070 SUPER / NVIDIA 620.73.04 and Radeon 610M / RADV Mesa 26.3.1. Khronos validation 1.4.363, including synchronization validation. - **Depth24 scratch reuse:** A 16×16 synthetic dispatch ran on graphics, then a different pattern ran on compute after retiring and collecting the first batch. The fixture observed exactly one converter scratch allocation and verified the same `VkBuffer` in both batches. On NVIDIA, sharing covered graphics/compute/transfer `0/2/1`; the second readback followed a compute-to-transfer semaphore handoff and ran on family 1. RADV used `0/1/1`, with sharing over the two distinct families. Both patterns matched all 256 reference words on both GPUs, with zero validation errors. - **EXCLUSIVE control:** The same fixture with no sharing families supplied still matched the first batch on graphics, then rejected the second-family use before submission. - **Device markers:** The stock marker test passed with sync validation on both plain `main` and the PR. A variant using distinct graphics and compute queues on the PR left the graphics marker slot at 5/5 and the compute slot at 8/8 on both GPUs, with zero validation errors. The two stock CPU sharing tests also passed. Synthetic fixtures only. AI-assisted with OpenAI Codex.
aslan2142 commented 2026-12-01 16:45:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:45:27Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7318168213 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2489#issuecomment-7318168213). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:45:27Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!2489
No description provided.