d3d12: keep sparse tile mappings in queue order (D3D-SPARSE-TILE-WAIT-ORDER) #1182

Closed
lixonik wants to merge 2 commits from upstream-pr/1182 into main
lixonik commented 2026-11-24 19:44:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-24T19:44:38Z.


Claimed in the coordination issue as D3D-SPARSE-TILE-WAIT-ORDER.

What and why

D3D12 tile updates and copies submitted Vulkan sparse binds immediately, even when an earlier operation on the same queue was held waiting for a fence. A remap could therefore reach the GPU ahead of that operation, and a mapping copy could read stale source mappings.

Stage both mapping operations in the same queue FIFO as held batches and signals. Resolve the current mappings when the operation is released. Keep the heap backing alive across the hold and verify that the registered resources are still the ones named when the operation was queued. A held mapping that generates no sparse work still submits its pending waits in order.

Tested

  • Mock Vulkan regression on Ubuntu with GCC. On main it sees sparse submissions before the fence signal. With the fix it checks FIFO ordering, the wait timeline between submissions, mapping and unmapping before a copy, a no-op copy with a pending wait, and removal and reuse of a resource ID.
  • Windows x64, MSVC 19.29, static CRT. All four selected CTest tests passed (vk_sparse_queue_order, vk_queue_constructor_oom, vk_buffer_registration_oom, vk_host_at_aliasing). Also compiled the Windows D3D12 command queue and device translation units with MSVC.
  • Full translator semantic suite passed (470 files, 6,141 tests). git diff --check and the game-data check passed.

GPUs tested: n/a (synthetic Vulkan calls).

AI-assisted.

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys or decryption.
  • No translator rule change.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5479133709 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1182). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-24T19:44:38Z. --- Claimed in the coordination issue as [D3D-SPARSE-TILE-WAIT-ORDER](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142357825). ### What and why D3D12 tile updates and copies submitted Vulkan sparse binds immediately, even when an earlier operation on the same queue was held waiting for a fence. A remap could therefore reach the GPU ahead of that operation, and a mapping copy could read stale source mappings. Stage both mapping operations in the same queue FIFO as held batches and signals. Resolve the current mappings when the operation is released. Keep the heap backing alive across the hold and verify that the registered resources are still the ones named when the operation was queued. A held mapping that generates no sparse work still submits its pending waits in order. ### Tested - Mock Vulkan regression on Ubuntu with GCC. On main it sees sparse submissions before the fence signal. With the fix it checks FIFO ordering, the wait timeline between submissions, mapping and unmapping before a copy, a no-op copy with a pending wait, and removal and reuse of a resource ID. - Windows x64, MSVC 19.29, static CRT. All four selected CTest tests passed (`vk_sparse_queue_order`, `vk_queue_constructor_oom`, `vk_buffer_registration_oom`, `vk_host_at_aliasing`). Also compiled the Windows D3D12 command queue and device translation units with MSVC. - Full translator semantic suite passed (470 files, 6,141 tests). `git diff --check` and the game-data check passed. GPUs tested: n/a (synthetic Vulkan calls). AI-assisted. ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys or decryption. - [x] No translator rule change.
madhyn commented 2026-11-24 20:08:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by madhyn on 2026-11-24T20:08:07Z.


Tested 07c3e8eda on Arch Linux:

  • ctest --test-dir runtime/build/linux -R "^vk_sparse_queue_order$" --output-on-failure: Passed (0.00 s)

AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143089396 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1182#issuecomment-7143089396). Originally posted by [madhyn](https://github.com/madhyn) on 2026-11-24T20:08:07Z. --- Tested `07c3e8eda` on Arch Linux: - `ctest --test-dir runtime/build/linux -R "^vk_sparse_queue_order$" --output-on-failure`: **Passed** (0.00 s) AI-assisted: yes
Deedlyy commented 2026-11-24 20:09:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Deedlyy on 2026-11-24T20:09:27Z.


Recommendation: [WAIT]

Reasoning: Sparse tile mappings and mapping copies are now staged in the queue FIFO with held batches and signals, so a remap can't overtake an earlier fence-held operation. This rewrites a chunk of vulkan_backend.h (+109/-43) and adds a 195-line test. The fix is plausible and important, but it is concurrency-sensitive and has no review or independent run yet. Get a second-person run of vk_sparse_queue_order and the sparse tile tests (#1156 adds timeouts for those), ideally on two vendors. 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 with main.

Impact level: 6/10

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143120934 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1182#issuecomment-7143120934). Originally posted by [Deedlyy](https://github.com/Deedlyy) on 2026-11-24T20:09:27Z. --- **Recommendation:** [WAIT] **Reasoning:** Sparse tile mappings and mapping copies are now staged in the queue FIFO with held batches and signals, so a remap can't overtake an earlier fence-held operation. This rewrites a chunk of `vulkan_backend.h` (+109/-43) and adds a 195-line test. The fix is plausible and important, but it is concurrency-sensitive and has no review or independent run yet. Get a second-person run of `vk_sparse_queue_order` and the sparse tile tests (#1156 adds timeouts for those), ideally on two vendors. 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 with `main`. **Impact level:** 6/10
PierreEbele commented 2026-11-25 09:25:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T09:25:05Z.


Tested 07c3e8eda under Wine 10.0 on Linux, GTX 1050 Ti (NVIDIA 555.58), Windows runtime cross-built with clang-cl + xwin: the teardown wedge this targets is gone.

  • On main 42537e7b6, d3d12_buffer_tiles and d3d12_texture_tiles hang until the ctest 300 s kill. UpdateTileMappings is refused with "sparse residency unavailable" although the standalone sparse probe passes on this driver, then teardown deadlocks on Wait(gate). Without the valve both hang indefinitely (seen for 15+ minutes).
  • With this PR, both pass in about 3 s, 4/4 attempts each. The new vk_sparse_queue_order test passes, and the rest of the d3d12_queue / d3d12_sparse / vk_sparse selection stays green (16 tests on main, 17 with the new one).

The PR head is based on 6293c1c4f, so a rebase onto current main may be needed before merging. AI-assisted.

Recommendation: Merge

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7158301727 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1182#issuecomment-7158301727). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T09:25:05Z. --- Tested 07c3e8eda under Wine 10.0 on Linux, GTX 1050 Ti (NVIDIA 555.58), Windows runtime cross-built with clang-cl + xwin: the teardown wedge this targets is gone. - On main 42537e7b6, `d3d12_buffer_tiles` and `d3d12_texture_tiles` hang until the ctest 300 s kill. `UpdateTileMappings` is refused with "sparse residency unavailable" although the standalone sparse probe passes on this driver, then teardown deadlocks on `Wait(gate)`. Without the valve both hang indefinitely (seen for 15+ minutes). - With this PR, both pass in about 3 s, 4/4 attempts each. The new `vk_sparse_queue_order` test passes, and the rest of the `d3d12_queue` / `d3d12_sparse` / `vk_sparse` selection stays green (16 tests on main, 17 with the new one). The PR head is based on 6293c1c4f, so a rebase onto current main may be needed before merging. AI-assisted. **Recommendation:** Merge
zmasi commented 2026-11-28 23:57:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T23:57:20Z.


#1182 | head 47420b299f (merged cleanly with main ba8b77b390 — no conflicts on current main) | ctest --test-dir runtime/build -C RelWithDebInfo -R "^(vk_sparse_queue_order|d3d12_buffer_tiles|d3d12_texture_tiles|d3d12_sparse_queue_family_contract|vk_queue|vk_host_at_aliasing)$" --output-on-failure (LEONIDA_VK_VALIDATION=1) | red on main: building vk_sparse_queue_order_test against main's runtime/src/vulkan_backend.h fails vk_sparse_queue_order at line 142: submissions.empty() (vkQueueBindSparse submits immediately ahead of fence-held queue operations) | green on PR+main: 6/6 CTests (vk_sparse_queue_order, d3d12_buffer_tiles — 12 full tiles matched vs native D3D12 Tier 4, d3d12_texture_tiles — all 4 gated remap/COPY-to-DIRECT handoff cases matched native D3D12, d3d12_sparse_queue_family_contract, vk_queue, vk_host_at_aliasing) pass in 6.44 s on RTX 3090 with 0 Khronos validation errors; test_docs_encoding.py & test_docs_repo_paths.py (6/6 OK) and check_no_game_data.py (0 violations) pass | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247773476 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1182#issuecomment-7247773476). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T23:57:20Z. --- #1182 | head 47420b299f6e0cbbc0f22ceeeaae4887e8288d34 (merged cleanly with main ba8b77b390b278cfb05510a4fc2922fb0fb9a11c — no conflicts on current `main`) | `ctest --test-dir runtime/build -C RelWithDebInfo -R "^(vk_sparse_queue_order|d3d12_buffer_tiles|d3d12_texture_tiles|d3d12_sparse_queue_family_contract|vk_queue|vk_host_at_aliasing)$" --output-on-failure` (`LEONIDA_VK_VALIDATION=1`) | red on main: building `vk_sparse_queue_order_test` against `main`'s `runtime/src/vulkan_backend.h` fails `vk_sparse_queue_order` at `line 142: submissions.empty()` (`vkQueueBindSparse` submits immediately ahead of fence-held queue operations) | green on PR+main: `6/6` CTests (`vk_sparse_queue_order`, `d3d12_buffer_tiles` — `12 full tiles matched` vs native D3D12 Tier 4, `d3d12_texture_tiles` — all `4` gated remap/COPY-to-DIRECT handoff cases matched native D3D12, `d3d12_sparse_queue_family_contract`, `vk_queue`, `vk_host_at_aliasing`) pass in `6.44 s` on RTX 3090 with `0` Khronos validation errors; `test_docs_encoding.py` & `test_docs_repo_paths.py` (`6/6 OK`) and `check_no_game_data.py` (`0` violations) pass | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes
fiestorra commented 2026-11-30 08:41:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T08:41:03Z.


Independent verification on this machine (Windows 11, MSVC 19.44.35226): the test this pull request registers cannot run - ctest reports it as "Not Run" - while the executable it points at builds fine.

1. It applies. merge-tree clean; the commit cherry-picks onto main e236b19c6 without a conflict.

2. The executable builds:

cmake --build runtime/build-ninja --target vk_sparse_queue_order_test
[2/2] Linking CXX executable vk_sparse_queue_order_test.exe

3. The test does not run:

ctest -R '^vk_sparse_queue_order$' --output-on-failure
  1/1 Test #237: vk_sparse_queue_order ......***Not Run   0.00 sec
  0% tests passed, 1 tests failed out of 1

4. The reason is visible in ctest's own manifest (ctest --show-only=json-v1):

name=vk_sparse_queue_order        cmd=                    <- empty
name=d3d12_sparse_queue_family    cmd=…\d3d12_sparse_queue_family_test.exe

vk_sparse_queue_order has an empty command while its neighbours have the resolved path. add_test resolves COMMAND <name> to a target's output only when that target is visible in the same directory scope at that point; an empty command means the resolution failed, so CTest has a test with nothing to run.

What this costs: the test is listed and red in any full ctest run (Not Run counts as a failure), and it never exercises anything. So the pull request adds a test that fails the suite without testing the code it adds.

What I would check first: whether the add_test(NAME vk_sparse_queue_order COMMAND vk_sparse_queue_order_test) sits in a different scope from its add_executable - the if(BUILD_TESTING) block it is in, or a function() - or simply uses $<TARGET_FILE:vk_sparse_queue_order_test> instead of the bare target name, which always resolves.

How it was found: a sweep of open pull requests that replay onto current main, building what each test's command[0] says to build, and running it. This is the first case of the sweep where the binary is fine and the registration is not.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7273213359 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1182#issuecomment-7273213359). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-30T08:41:03Z. --- Independent verification on this machine (Windows 11, MSVC 19.44.35226): **the test this pull request registers cannot run - `ctest` reports it as "Not Run" - while the executable it points at builds fine.** **1. It applies.** `merge-tree` clean; the commit cherry-picks onto `main` `e236b19c6` without a conflict. **2. The executable builds:** ``` cmake --build runtime/build-ninja --target vk_sparse_queue_order_test [2/2] Linking CXX executable vk_sparse_queue_order_test.exe ``` **3. The test does not run:** ``` ctest -R '^vk_sparse_queue_order$' --output-on-failure 1/1 Test #237: vk_sparse_queue_order ......***Not Run 0.00 sec 0% tests passed, 1 tests failed out of 1 ``` **4. The reason is visible in ctest's own manifest** (`ctest --show-only=json-v1`): ``` name=vk_sparse_queue_order cmd= <- empty name=d3d12_sparse_queue_family cmd=…\d3d12_sparse_queue_family_test.exe ``` `vk_sparse_queue_order` has an **empty `command`** while its neighbours have the resolved path. `add_test` resolves `COMMAND <name>` to a target's output **only when that target is visible in the same directory scope at that point**; an empty command means the resolution failed, so CTest has a test with nothing to run. **What this costs:** the test is **listed and red in any full `ctest` run** (`Not Run` counts as a failure), and it never exercises anything. So the pull request adds a test that fails the suite without testing the code it adds. **What I would check first:** whether the `add_test(NAME vk_sparse_queue_order COMMAND vk_sparse_queue_order_test)` sits in a different scope from its `add_executable` - the `if(BUILD_TESTING)` block it is in, or a `function()` - or simply uses `$<TARGET_FILE:vk_sparse_queue_order_test>` instead of the bare target name, which always resolves. **How it was found:** a sweep of open pull requests that replay onto current `main`, building what each test's `command[0]` says to build, and running it. **This is the first case of the sweep where the binary is fine and the registration is not.** Written with an AI assistant.
lixonik commented 2026-11-30 10:02:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-30T10:02:33Z.


@fiestorra Thanks for the detailed report. I rebuilt vk_sparse_queue_order_test with the unchanged registration at 47420b299f6e0cbbc0f22ceeeaae4887e8288d34 merged locally with main 4014af7fe9a479caee2946c1814c11935b24bf60. Windows 10 22H2, MSVC 19.44.35230, CMake/CTest 3.31.8. This is a mock Vulkan test and uses no GPU.

  • Single-config Ninja (CMAKE_BUILD_TYPE=Release): ctest --show-only=json-v1 -R '^vk_sparse_queue_order$' resolves the built .exe; ctest -V -R '^vk_sparse_queue_order$' passes 1/1.
  • Ninja Multi-Config, after building --config Release: omitting -C produces Not Run with Test not available without configuration. Adding -C Release resolves the Release executable in the manifest and passes 1/1.

The add_executable and add_test lines are also identical when the head is merged onto your e236b19c6 baseline. Which CMAKE_GENERATOR value and CTest configuration did your original build directory use? If it was single-config Ninja, the generated add_test line for this entry would help compare the two setups.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7275033875 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1182#issuecomment-7275033875). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-30T10:02:33Z. --- @fiestorra Thanks for the detailed report. I rebuilt `vk_sparse_queue_order_test` with the unchanged registration at `47420b299f6e0cbbc0f22ceeeaae4887e8288d34` merged locally with `main` `4014af7fe9a479caee2946c1814c11935b24bf60`. Windows 10 22H2, MSVC 19.44.35230, CMake/CTest 3.31.8. This is a mock Vulkan test and uses no GPU. - Single-config Ninja (`CMAKE_BUILD_TYPE=Release`): `ctest --show-only=json-v1 -R '^vk_sparse_queue_order$'` resolves the built `.exe`; `ctest -V -R '^vk_sparse_queue_order$'` passes 1/1. - Ninja Multi-Config, after building `--config Release`: omitting `-C` produces `Not Run` with `Test not available without configuration`. Adding `-C Release` resolves the Release executable in the manifest and passes 1/1. The `add_executable` and `add_test` lines are also identical when the head is merged onto your `e236b19c6` baseline. Which `CMAKE_GENERATOR` value and CTest configuration did your original build directory use? If it was single-config Ninja, the generated `add_test` line for this entry would help compare the two setups. AI-assisted.
fiestorra commented 2026-11-30 11:14:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T11:14:02Z.


Correction: this pull request does not have the empty-command problem I reported earlier. On current main the test resolves and passes.

Measured just now, with a fresh configure and a fresh manifest:

rm runtime/build-ninja/ctest.json
cmake -S runtime -B runtime/build-ninja -G Ninja …
ctest --test-dir runtime/build-ninja --show-only=json-v1
  vk_sparse_queue_order: cmd = …\runtime\build-ninja\vk_sparse_queue_order_test.exe
  572 tests total

ctest -R '^vk_sparse_queue_order$'
  1/1 Test #250: vk_sparse_queue_order ......   Passed

direct run: exit=0, "vk_sparse_queue_order: OK"

What I reported at the time and now withdraw: that vk_sparse_queue_order was registered with an empty command and came up Not Run. That is not what the tree does today, and I could not reproduce it on main d367675c7 in three attempts.

Why I got it wrong, as best I can reconstruct: the reading came from a ctest.json produced in a batch that reused one build directory across a series of pull requests. A manifest generated for one tree, read against another, reports whichever tests the previous configure knew about - and a name it does not know looks exactly like "registered with no command". It is the same class of error as the stale binary, one level up: a stale manifest.

What this does not change: #2344 does have the defect - I reproduced it there with a freshly built binary at 12:09:30 and a freshly configured manifest, and both proposed fixes resolve it. #1242 and #1419 I have not re-checked with the same rigour, and given this, I would treat my reports on those two as unconfirmed until someone re-runs them cleanly.

The rule I should have applied and did not: a manifest is a build artefact like any other - delete it or regenerate it in a fresh directory before reading it as evidence about a tree.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7276734485 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1182#issuecomment-7276734485). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-30T11:14:02Z. --- **Correction: this pull request does not have the empty-command problem I reported earlier. On current `main` the test resolves and passes.** **Measured just now, with a fresh configure and a fresh manifest:** ``` rm runtime/build-ninja/ctest.json cmake -S runtime -B runtime/build-ninja -G Ninja … ctest --test-dir runtime/build-ninja --show-only=json-v1 vk_sparse_queue_order: cmd = …\runtime\build-ninja\vk_sparse_queue_order_test.exe 572 tests total ctest -R '^vk_sparse_queue_order$' 1/1 Test #250: vk_sparse_queue_order ...... Passed direct run: exit=0, "vk_sparse_queue_order: OK" ``` **What I reported at the time and now withdraw:** that `vk_sparse_queue_order` was registered with an **empty `command`** and came up `Not Run`. **That is not what the tree does today**, and I could not reproduce it on `main` `d367675c7` in three attempts. **Why I got it wrong, as best I can reconstruct:** the reading came from a `ctest.json` produced in a batch that **reused one build directory across a series of pull requests**. A manifest generated for one tree, read against another, reports whichever tests the *previous* configure knew about - and a name it does not know looks exactly like "registered with no command". **It is the same class of error as the stale binary, one level up: a stale manifest.** **What this does not change:** **#2344 does have the defect** - I reproduced it there with a freshly built binary at 12:09:30 and a freshly configured manifest, and both proposed fixes resolve it. **#1242 and #1419 I have not re-checked with the same rigour**, and given this, **I would treat my reports on those two as unconfirmed until someone re-runs them cleanly.** **The rule I should have applied and did not:** **a manifest is a build artefact like any other** - delete it or regenerate it in a fresh directory before reading it as evidence about a tree. Written with an AI assistant.
lixonik commented 2026-11-30 12:24:23 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-30T12:24:23Z.


@fiestorra Thanks for rerunning it from a fresh manifest. The CTest registration stayed unchanged. After #2566 changed the queue execution path, I merged main d367675c705c758f731ae9eb603839a4ebb2283c in 103b1f9e9cf36ce9a05aee9454533771de969d44 and wired deferred tile updates and copies into the new held queue.

Fresh Ninja Release build on Windows 10 22H2, MSVC 19.44.35230: vk_sparse_queue_order, vk_queue, and submit_frame passed. Sparse ordering uses mock Vulkan submissions. submit_frame ran on an RTX 5070 with NVIDIA 610.88.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7278389665 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1182#issuecomment-7278389665). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-30T12:24:23Z. --- @fiestorra Thanks for rerunning it from a fresh manifest. The CTest registration stayed unchanged. After #2566 changed the queue execution path, I merged main `d367675c705c758f731ae9eb603839a4ebb2283c` in `103b1f9e9cf36ce9a05aee9454533771de969d44` and wired deferred tile updates and copies into the new held queue. Fresh Ninja Release build on Windows 10 22H2, MSVC 19.44.35230: `vk_sparse_queue_order`, `vk_queue`, and `submit_frame` passed. Sparse ordering uses mock Vulkan submissions. `submit_frame` ran on an RTX 5070 with NVIDIA 610.88. AI-assisted.
merzleckeier commented 2026-11-30 12:59:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T12:59:11Z.


Independent two-fence queue-order check. CachyOS, Clang 23.1.5, native Release. I tested 103b1f9e merged onto 497bdd039 (tree 2323eff6), with the same runtime sources as GitHub merge 2efa4385.

MEASURED, synthetic Vulkan callbacks. A consumer queues Wait A → tile update → Wait B → tile copy → completion signal. A separate producer signals A and B in both orders. I ran three trials per order and revision.

  • main forwarded the three consumer operations to the Vulkan callbacks before the first producer signal in all six trials.
  • The PR forwarded none before either signal. A first released the update only. B first released no consumer work. After both signals, the consumer issued update → copy → completion in all six trials, with the expected offsets and waits. The update binds source tile 0 to heap tile 1. The copy uses that mapping for destination tile 1. The completion signal waits on the copy’s progress ticket.

MEASURED, checked-in tests. vk_sparse_queue_order, vk_queue and submit_frame passed on each native run. The latter two exercised the RTX 4070 SUPER (620.73.04) and Radeon 610M (RADV 26.3.1) with Vulkan validation enabled. The sparse-order checks used mocked binds and submits.

AI-assisted with OpenAI Codex. Results independently checked against the raw logs.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7279194825 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1182#issuecomment-7279194825). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-30T12:59:11Z. --- **Independent two-fence queue-order check.** CachyOS, Clang 23.1.5, native Release. I tested `103b1f9e` merged onto `497bdd039` (tree `2323eff6`), with the same runtime sources as GitHub merge `2efa4385`. **MEASURED, synthetic Vulkan callbacks.** A consumer queues Wait A → tile update → Wait B → tile copy → completion signal. A separate producer signals A and B in both orders. I ran three trials per order and revision. - `main` forwarded the three consumer operations to the Vulkan callbacks before the first producer signal in all six trials. - The PR forwarded none before either signal. A first released the update only. B first released no consumer work. After both signals, the consumer issued update → copy → completion in all six trials, with the expected offsets and waits. The update binds source tile 0 to heap tile 1. The copy uses that mapping for destination tile 1. The completion signal waits on the copy’s progress ticket. **MEASURED, checked-in tests.** `vk_sparse_queue_order`, `vk_queue` and `submit_frame` passed on each native run. The latter two exercised the RTX 4070 SUPER (620.73.04) and Radeon 610M (RADV 26.3.1) with Vulkan validation enabled. The sparse-order checks used mocked binds and submits. AI-assisted with OpenAI Codex. Results independently checked against the raw logs.
ammonium231 commented 2026-11-30 13:43:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ammonium231 on 2026-11-30T13:43:44Z.


RTX 3090 / 621.40, validation on, 103b1f9e9 merged onto main f9f3ec4c6: vk_sparse_queue_order_test OK; vk_queue_test and submit_frame_test OK as on main. No validation errors.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7280266839 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1182#issuecomment-7280266839). Originally posted by [ammonium231](https://github.com/ammonium231) on 2026-11-30T13:43:44Z. --- RTX 3090 / 621.40, validation on, 103b1f9e9 merged onto main f9f3ec4c6: vk_sparse_queue_order_test OK; vk_queue_test and submit_frame_test OK as on main. No validation errors.
aslan2142 commented 2026-12-02 00:43:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-02T00:43:40Z.


Thank you for the careful work and thorough verification here. The legacy C++/Vulkan runtime/ directory is now frozen and deprecated as active development focuses on the d3d12/ and clean-room Rust vulkan/ tracks, so we are closing open legacy runtime/ PRs. We really appreciate the effort that went into this.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7330889037 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1182#issuecomment-7330889037). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-02T00:43:40Z. --- Thank you for the careful work and thorough verification here. The legacy C++/Vulkan runtime/ directory is now frozen and deprecated as active development focuses on the d3d12/ and clean-room Rust vulkan/ tracks, so we are closing open legacy runtime/ PRs. We really appreciate the effort that went into this.

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!1182
No description provided.