Skip to content

Runtime: queue Wait before Signal — hold the batch until its Signal is submitted, so layouts follow dependency order across queues - #2951

Open
AlxcBTW wants to merge 6 commits into
ItsNotRexed:mainfrom
AlxcBTW:queue-wait-before-signal
Open

AlxcBTW wants to merge 6 commits into
ItsNotRexed:mainfrom
AlxcBTW:queue-wait-before-signal

Conversation

@AlxcBTW

@AlxcBTW AlxcBTW commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

What and why

This PR makes a queue Wait for a Signal that is submitted later work in the Vulkan layer, including handing resources between queues. It follows up D3D-97, closes the M4 gap from #1791, and was claimed in #1548.

The bug: a queue's ExecuteCommandLists is replayed against one LayoutTracker in call order. A batch that waits for a Signal submitted later was therefore recorded against the layouts from before the work it waits for. A copy list got replayed against UNDEFINED, and validation flagged it.

The fix:

  • Tracking: the layer now tracks, per fence, the highest Signal value submitted, separately from the completed value. CPU Signals and the fence's creation value count too. This is the new runtime/src/queue_holds.h.
  • Holding: while a Wait names a higher value, the queue holds that batch and everything after it on the CPU. Held CommandLists are copied, so the app can Reset its lists, and Signals and markers queue behind the held batch, which keeps per-queue order.
  • Release: the thread that submits the satisfying Signal, or makes the CPU Signal, records and submits the held work in dependency order, each batch on its own VkQueue. There is no worker thread and the CPU never blocks on the GPU. This also avoids a Wait landing before its Signal on one VkQueue, which would never make progress on the GPU.
  • Fast path: when the Signal was submitted first, the old path runs unchanged, with no copy and the same vkQueueSubmit.

Edge cases: held work is reported, not hung on, when its queue is destroyed or its fence is released under it. A fence nobody signals holds back only its own waiters.

Prior art, approach only (vkd3d-proton, LGPL-2.1, no code copied): a satisfied wait never blocks again, which the monotonic table gives for free, and submission order is followed. Mapping virtual D3D12 fence values to physical Vulkan values is not done here. A Signal with a lower value is still dropped with a note, as before.

Queue families: every D3D12 queue is created in the graphics family, so the EXCLUSIVE resources need no ownership transfer. A dedicated family would need CONCURRENT, which the docs note.

Limits, documented in §4.4:

  • Sparse UpdateTileMappings still submits immediately while a queue holds work.
  • Resources a held batch names must stay alive until its fence signals. The layer doesn't pin them.
  • A failure inside a held ExecuteCommandLists is printed when the batch is released, not returned from the call.

Existing tests changed. These relied on an unsatisfied Wait reaching vkQueueSubmit:

  • vk_queue_query_sync_test now signals the fence first.
  • vk_overlapping_occlusion_test declares the gate's Signal as submitted.
  • d3d12_m4_compute_test now submits the readback before the compute batch it waits for, so M4 runs the new path.

Tested

New d3d12_queue_handover_test runs the same cases on the layer and on the host D3D12 runtime, using the Radeon 880M adapter, and every case is byte-exact against what the CPU wrote:

  • COPY, COMPUTE and DIRECT hand a texture and a buffer around in produce → relay → consume chains, across all 27 queue-type assignments and all 6 submission orders, including consumer first.
  • Two producers feed one consumer that holds two Waits.
  • A chain is released by a CPU Signal, with the CPU Signal coming both before and after the Wait.
  • A fence nobody signals, and a fence released under a waiter, must both be reported.
Radeon 880M (26.11.2) RTX 5070 Laptop (617.42) Host D3D12 (880M adapter)
Handover cases, all exact 358 371 369
Sync-validation VUIDs 0 0 –
Full ctest 130/130 130/130 –
  • Negative control: with holding disabled, 236 cases fail on the 880M and validation reports VUID-vkCmdDraw-None-09600.
  • Python: tests/test_ctest_registration.py and the docs tests pass.

Checklist

  • No game data, keys or online access
  • Test added and registered with ctest (SKIP_RETURN_CODE 77, fails on any VUID)
  • Docs updated (§4.4, M4 row)
  • Merges cleanly with main

AI-assisted (Claude Code).

🤖 Generated with Claude Code

@Doffi4

Doffi4 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Independent Windows 11 (26200) check of 159d9abc: built d3d12_queue_handover_test from the PR head with MSVC 19.44 and ran ctest -C Release -R '^d3d12_queue_handover$' -V twice with Khronos validation 1.4.357 and LEONIDA_VK_VALIDATION=1 (synchronization validation).

  • Radeon 780M, AMD 26.11.2: 358 exact Vulkan-layer cases. One queue-type assignment was unavailable (3 COPY / 3 COMPUTE / 2 DIRECT).
  • RTX 5060 Laptop, NVIDIA 621.01: 371 exact Vulkan-layer cases (3 / 3 / 3).
  • The native comparison selected the RTX 5060 Laptop in both runs and passed 369 exact cases each time.

CTest passed on both GPUs with no validation errors/VUIDs. The never-signaled-fence case reported the held operations and destroyed the queue without hanging. Synthetic inputs only. AI-assisted testing and reporting.

AlxcBTW and others added 2 commits November 22, 2026 21:02
…ity, fence lifetime, teardown, docs)

- Present is queued behind held work (QueueHolds::after_held) and submitted in order by the releasing thread.
- Held batches keep the pipeline states and root signatures of their lists; fences a queue waits on or signals are
  kept until the submission has completed on the GPU (a D3D12 queue holds them).
- A held Signal released below an unheld one on the same fence leaves the Vulkan signal out (claimed under the submit lock).
- A queue destroyed with held Signals completes the CPU waits on their fences and reports it.
- A failed held batch is reported (take_held_failure, last_execute_result), its waits stay for the next submission,
  and the Signal behind it still signals.
- d3d12_queue_handover_test: pairs, two-thread signalling stress, held Signal of a released fence, shared fence,
  teardown with a CPU waiter; --two-queues and --shared-queue modes on a caller-owned device.
- Tests for each fix in vk_presenter_sync_test, vk_queue_query_sync_test and d3d12_m4_compute_test; docs section 4.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…docs counts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AlxcBTW

AlxcBTW commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

I've pushed 0d758762. It fixes everything from the pre-merge review and includes a merge of main at f847748c. Every fix has its own test, and I checked that each new test fails when its fix is turned off.

  1. Present behind held work:
    • A Present that reads a texture, plain or planes, now queues behind held work. The thread that releases the last held operation then submits it.
    • I queue the Present instead of blocking on it, because the Signal that releases the work may come from the app's own thread after Present has returned.
    • Limitation: held work that is never released holds back later presents device-wide, because the layer can't tell which batch draws into which back buffer. The docs say so.
    • Test: vk_presenter_sync_test §2b.
  2. Pins:
    • The PSOs and root signatures a held batch names are copied into the held operation. Releasing a PSO and calling Reset right after ExecuteCommandLists is now safe.
    • A failed held batch is reported. The Signal behind it still fires, so nothing waits forever, and the docs explain this.
    • Test: d3d12_m4_compute_test releases and resets right after a held Execute.
  3. Timeline monotonicity: when a held Signal(F,2) is released after an unheld Signal(F,3), the Vulkan signal is left out. The check runs under the submit lock. Test: monotonic_shared_fence. With the check turned off it hits VUID-VkSubmitInfo-pSignalSemaphores-03242.
  4. Fence lifetime: a queue keeps the fences it waits on or signals alive until that submission completes on the GPU, as D3D12 does. Test: held_signal_survives_release.
  5. Teardown: destroying a queue that still holds Signals completes the CPU waits on those fences and reports it. Test: teardown_wakes_cpu_waiters.
  6. Docs: §4.4 no longer says that no caller ever waits. It says which thread records held work and which calls wait for a release that is in progress.
  7. Waits after a failed held submit: they stay for the next submission, as on the non-held path. Test: vk_queue_query_sync_test §3b.
  8. Stress and queue modes:
    • concurrent_signalling runs 200 rounds with two signalling threads.
    • The handover test has two new modes on a caller-owned device: --two-queues, with two distinct VkQueues (copy/compute pairs, 8 cases), and --shared-queue.
  9. Not changed: sparse UpdateTileMappings and CopyTileMappings still submit immediately. That limit is documented.

Tested 0d758762 on AMD Radeon 880M (26.11.2) and NVIDIA RTX 5070 Laptop (617.42), Windows 11:

  • Handover test: 592/592 exact on the layer and 587/587 on the host D3D12 runtime, with 0 VUIDs under LEONIDA_VK_VALIDATION=1 in all three modes.
  • Full ctest on the 880M: 143/143.
  • On the 5070, not yet one clean full run on the final tree: one run failed the CPU PE-loader test loader, which isn't related to this change and passed twice when run alone. An earlier run stalled in replay_readback_stages, which also passes alone.

Thanks @Doffi4 for independently confirming 159d9abc: 358 exact cases on a Radeon 780M and 371 on an RTX 5060, with 0 VUIDs.

This stays a draft until a second review pass is done.

AI-assisted (Claude Code).

…ng and bound, teardown pump, tests)

- A Signal counts as submitted only after vkQueueSubmit succeeded: a failed submit releases no waiter and the retry goes through.
- ~VulkanQueue pumps after dropping held work; fence keep-alives are also drained in wait() and marker().
- VulkanPresenter: counters are atomics, read_back/enable_capture take the presenter mutex, set_abort has its own mutex,
  a deferred present reports not tearing, and at most 8 presents queue up before the caller waits.
- Tests: three presents (blit, blank, composed) queued behind held work run in order, a present behind a destroyed
  queue's held work runs, a failed Signal does not release its waiters; the handover modes also run on the host runtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AlxcBTW

AlxcBTW commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

I've pushed 48cee7c2 with the fixes from a second review pass, and I'm marking this PR ready.

  1. A Signal now counts as submitted only after vkQueueSubmit succeeds. The check still runs under the submit lock. Before this, a transient submit failure on Signal(F,1) could release a queue waiting on F (leaving it stuck on the GPU), and a retry of the same signal was skipped.
    • Test: vk_queue_query_sync_test §3c injects that failure. The waiter stays held, and the retry signals it and releases it with exact output.
  2. Queue teardown now releases ready work after dropping held work. This is for presents queued behind that work.
    • Test: vk_presenter_sync_test §2c.
    • Limit: that test passes with or without the extra call, because detach() already releases the barrier. So the call is defensive, and the test doesn't prove it's needed.
  3. Presenter thread safety. Deferred presents now run on whichever thread releases the held work.
    • Lock or atomic: read_back and enable_capture take the present lock. The counters, extent(), last_present_tore() and force_hdr_encoding are now atomics, so they never wait on a present that is blocked in vkAcquireNextImageKHR (locking them could deadlock a window thread during a resize).
    • Abort: set_abort has its own lock, so it still works while a present waits.
    • Default sync: a deferred present reports last_present_tore() as false, which the Xbox present path turns into the default vblank sync. The docs say so.
  4. At most 8 presents queue up behind held work. The next Present then waits for the held work to be released, logging once, and set_abort ends that wait. Like a full frame-latency queue, it waits forever if the presenting thread is the one that would release the work.
  5. Fence keep-alives are now also drained in wait() and marker().
  6. Tests:
    • Present order: §2b now queues three presents (a blit, a blank one, then a composed present_planes), and the composed frame has to be the one shown.
    • Pin regression: this is d3d12_m4_compute_test. It holds the list, releases its PSOs and root signature, resets the list, then releases the wait. Without the pins it reads zeros.
    • Cross-check: --two-queues and --shared-queue now also run on the host runtime.

Tested 48cee7c2 on AMD Radeon 880M (26.11.2) and NVIDIA RTX 5070 Laptop (617.42), Windows 11.

Radeon 880M RTX 5070
Full ctest 143/143 143/143, one fully clean run on the final tree
Full ctest with LEONIDA_VK_VALIDATION=1 143/143, 0 VUIDs 143/143, 0 VUIDs
Handover test, every mode 0 VUIDs 0 VUIDs

Handover test cases, with the host runtime on the 880M adapter:

  • Default mode: 592 exact on the layer, 587 exact on the host runtime.
  • --shared-queue: 592.
  • --two-queues: 8, because only copy and compute fit on two VkQueues.

AI-assisted (Claude Code).

@AlxcBTW
AlxcBTW marked this pull request as ready for review November 22, 2026 21:21
@airp1ane

Copy link
Copy Markdown
Contributor

Independently tested 48cee7c2 on Windows 11 build 26300, NVIDIA GeForce RTX 4060 Ti, driver 621.24, Vulkan SDK 1.4.363.1, and MSVC 19.52 (RelWithDebInfo).

With LEONIDA_VK_VALIDATION=1, all six focused CTest entries passed with zero Vulkan validation errors or VUIDs.

  • Queue handover: 592 exact cases in default mode, 592 in shared-queue mode, and 8 in two-queue mode. Host D3D12 passed 587 exact cases in each run.
  • Queue query sync: a failed Signal kept the waiter held, and retrying the Signal released it.
  • Presenter sync: the three deferred presents ran in order, and the present behind a destroyed queue’s held work ran.
  • M4 compute: all 1,924 words matched the CPU reference across two Vulkan queues.

The runtime build completed. The first M4 attempt could not read a generated fixture inside the sandbox. It passed on the rerun with fixture access. Synthetic fixtures only. AI-assisted testing and reporting.

@erickbobd

Copy link
Copy Markdown
Contributor

Independent Windows/NVIDIA check of exact head 48cee7c2c69e502cc864b0789a9cf5bb88e98658, which already contains main f847748c. Fresh isolated worktree, no source changes.

Additional finding: the deferred-present cap can be bypassed by cancellation. The existing focused suite passes, but a separate synthetic probe against this head filled the queue with eight deferred presents, set set_abort([] { return true; }), and called present() twelve more times while the rendering batch remained held. All twelve calls returned VK_SUCCESS and were queued. Clearing the abort callback and releasing the rendering gate then displayed 20 frames, despite max_deferred_presents == 8.

The path is submit / wait_for_room: wait_for_room() returns void when should_abort() is true, and submit() proceeds to deferred_.push_back(). Further calls with the abort condition still true can continue growing the supposedly bounded queue while work stays held.

The external probe used the same presenter/context setup as vk_presenter_sync_test, replacing its final concurrent stress section with this sequence (the command list transitions/clears resource 1, as in section 2c):

VulkanFence gate(context, 0);
// 'held' is a closed CommandList: COMMON -> RENDER_TARGET, clear, -> COMMON.
const CommandList* ptr = &held;
queue.wait(gate.semaphore(), 1);
EXPECT(queue.execute({&ptr, 1}) == ReplayResult::success);
const auto shown = presenter.presented();
for (unsigned i = 0; i < 8; ++i)
    EXPECT(presenter.present(1, true) == VK_SUCCESS);
presenter.set_abort([] { return true; });
unsigned accepted = 0;
for (unsigned i = 0; i < 12; ++i)
    accepted += presenter.present(1, true) == VK_SUCCESS;
presenter.set_abort({});
EXPECT(gate.signal(1));
EXPECT(queue.idle());
// Observed: accepted == 12, presenter.presented() - shown == 20.

A separate local diagnostic control, leaving the PR worktree untouched, made wait_for_room() return success/cancellation and made submit() return VK_NOT_READY before enqueueing on cancellation. The identical probe then observed 0 extra accepted calls and 8 displayed frames. Both probe runs had zero Vulkan validation errors. This suggests propagating cancellation before enqueueing and adding a regression for a full queue plus abort; I have not opened a competing implementation PR.

Hardware/toolchain: desktop GeForce RTX 5070 Ti, NVIDIA 617.14; Windows 11 Pro 25H2, build 26200.9974; MSVC 19.51.36260 (x64), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, Ninja/RelWithDebInfo. The handwritten M4 assembly was built through the existing fixture builder using a local llvm-mc-compatible shim over AMD RGA 2.15's LLVM 23 clang -cc1as.

9/9 focused CTest entries passed both normally and with LEONIDA_VK_VALIDATION=1, with no skipped entries. The validated run had 0 validation errors and 0 VUIDs after isolating the third-party layer described below. This is a focused check, not a full 143-test runtime run.

Handover mode Vulkan layer, exact cases Host D3D12 on the same RTX, exact cases
Default 592 587
--shared-queue 592 587
--two-queues 8 587

In two-queue mode only COPY/COMPUTE fit (1/1/0 queues available); the test explicitly reports the 27 three-role assignments it cannot run. The eight executed cases pass; this does not claim full three-role coverage in that mode.

The other passing entries were vk_queue_query_sync, vk_overlapping_occlusion, vk_presenter_sync, d3d12_queue_wait, its expected-failure timeout control, and d3d12_m4_compute. In particular:

  • Failed Signal submission kept its waiter held; retry released it with exact output.
  • Three deferred presents ran in order and the present behind a destroyed queue's held work ran.
  • M4's held-list/PSO/root-signature/reset regression matched all 1,924 words, error 0, across two Vulkan queues.
  • vk_sync_validation separately proved the validation layer was active: the deliberately unsynchronized copies produced one write-after-write error; the barrier control produced zero.

Execution caveat: the unmodified vk_presenter_sync passed in 90.23 seconds without validation; a focused rerun passed in 78.37 seconds. The validated suite's instance passed in 1.09 seconds. Both normal runs completed successfully; I have not isolated the reason for the delay and am not claiming a performance result.

Reproduction after building the corresponding targets:

$env:DISABLE_RTSS_LAYER = '1'
$env:DISABLE_VULKAN_OBS_CAPTURE = '1'
$env:VK_LAYER_bandicam_helper_DEBUG_1 = '1'
$env:LEONIDA_VK_VALIDATION = '1'
ctest --test-dir runtime/build -C RelWithDebInfo -V --timeout 400 -R '^(vk_queue_query_sync|vk_overlapping_occlusion|vk_presenter_sync|d3d12_queue_wait(_timeout)?|d3d12_queue_handover(_two_queues|_shared_queue)?|d3d12_m4_compute)$'

Environment control: the first validated run was 8/9 because the installed Bandicam implicit layer was still inserted despite the RTSS/OBS switches. vk_presenter_sync reported VUID-VkImageViewCreateInfo-image-04441 and VUID-VkFramebufferCreateInfo-pAttachments-00877 on transfer-only swapchain images. VK_LOADER_DEBUG=layer confirmed VK_LAYER_bandicam_helper/bdcamvk64.dll was inserted. Setting its manifest's own disable_environment switch, VK_LAYER_bandicam_helper_DEBUG_1=1, removed that layer; the same unchanged executable then passed with no validation errors, followed by the clean 9/9 run above. This was a process-local environment change, not a runtime fix or suppressed validation check.

Synthetic fixtures only; no game files used. AI-assisted testing and reporting (Codex).

@ddm-j

ddm-j commented Nov 22, 2026

Copy link
Copy Markdown

Tested 48cee7c under Wine 11.21 (Fedora 45) on AMD Radeon 610M iGPU (RDNA2 gfx1036, RADV Mesa 26.2.6) and NVIDIA RTX 4070 Ti (615.78.08): pass. This is the first run on Linux Vulkan drivers, and the first AMD run on this head.

Focused tests:

Test RADV RAPHAEL RTX 4070 Ti
d3d12_queue_handover 468 cases, every one exact (never-signaled case: "no spare queue, skipped") 592 cases, every one exact
d3d12_queue_handover_shared_queue 592 cases, every one exact; never-signaled fence held and destroyed without a hang 592 cases, every one exact; same
d3d12_queue_handover_two_queues skipped: "the queue family has one queue" 8 cases, every one exact
d3d12_m4_compute 1924 words matched the CPU reference (one VkQueue) 1924 words matched the CPU reference (two VkQueues)
vk_queue_query_sync failed held batch reported, wait kept for the retry, Signal behind it ran same
vk_presenter_sync three Presents behind held work ran in order; Present behind a destroyed queue's held work ran same
vk_overlapping_occlusion, vk_binary_occlusion pass, exact pass, exact

RADV exposes a single queue in its graphics family on this chip, so only the one-queue paths run there. Those paths pass, including the shared-queue handover.

Full ctest (clang-cl + xwin cross-build):

base f847748 this PR 48cee7c
RADV RAPHAEL 120 passed, 18 skipped, 0 failed (of 138) 122 passed, 19 skipped, 0 failed (of 141)
RTX 4070 Ti 120 passed, 18 skipped, 0 failed (of 138) 122 passed, 18 skipped, 1 failed (of 141)
  • The one 4070 failure is dxgi_swapchain. It passed when rerun alone, and I've seen the same intermittent failure on another PR under Wine/Xvfb on this card, so I don't attribute it to this PR.
  • The extra RADV skip is d3d12_queue_handover_two_queues (above).

Not run or not covered here:

  • No host D3D12 under Wine, so every "host comparison" was skipped. All the numbers above are against CPU-written references.
  • Vulkan validation: the Khronos layer isn't installed in the Wine prefix, so these ran without it.
  • d3d12_present (hangs on a real GPU under Xvfb) and device_proxy (no host D3D12).

AI-assisted (Claude Code); numbers copied from the run logs.

@sh1shu1

sh1shu1 commented Nov 22, 2026

Copy link
Copy Markdown

Tested 48cee7c on NVIDIA RTX 4070 SUPER (driver 616.92), Windows 11 26200, MSVC 14.44, Vulkan SDK 1.4.363, RelWithDebInfo: pass, no regression against main f847748.

  • ctest: 143/143 passed, same 8 skips as main f847748
  • d3d12_m4_compute, d3d12_queue_handover, vk_overlapping_occlusion, vk_presenter_sync, vk_queue_query_sync: 5/5
  • run_gpu_tests (LEONIDA_VK_VALIDATION=1): 153/199 native, 184/199 with LEONIDA_W64_EMULATE=1, 0 failed; identical to main f847748
  • window-based tests skip in this session (no interactive desktop)
    AI-assisted (Claude Code, Claude Fable 5.1).

@lunisahdidouch

Copy link
Copy Markdown

Tested 48cee7c on an RX 9070 (RDNA4), AMD 26.11.1, Windows 11 (26300), VS 2022 Build Tools, RelWithDebInfo with SDL3: pass

Full ctest: 144 tests, 0 failed (same 7 skips as main). The three d3d12_queue_handover variants pass (plain, two_queues and shared_queue), and so do the changed vk_queue_query_sync, vk_overlapping_occlusion, vk_presenter_sync and d3d12_m4_compute. tests/test_ctest_registration.py and the docs tests are OK.

AI-assisted

@FaKL-Code

Copy link
Copy Markdown
Contributor

Tested 48cee7c (merged onto main f847748) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0: pass on an idle machine, with an intermittent watchdog hit under load

  • Merges cleanly onto f847748; no new compiler warnings against main.
  • ctest: 134 of 134 pass (main's 131 plus the three d3d12_queue_handover* tests; same 8 skips as main). Loader test passes; validation run: 55 tests clean.
  • Idle machine, nothing else running: d3d12_queue_handover, _two_queues and _shared_queue passed 10 of 10 runs without validation and 10 of 10 with LEONIDA_VK_VALIDATION=1. Each run takes about 5 s, 3 s and 5 s.
  • Under load (other builds and ctest runs going on the machine at the same time), the 20 s per-case watchdog fired a few times, in d3d12_queue_handover and d3d12_queue_handover_shared_queue, never in _two_queues:
    • Cases named: "fence nobody signals", "held Signal of a released fence", "two threads signalling and releasing".
    • First run with validation: 2 of the 8 tests in that set failed this way. Then 4 of 4 with validation passed, and 2 of 4 without it had a hang.
    • A whole test takes about 5 s idle, so a single case running past 20 s looks more like a real stall than slowness. But I couldn't reproduce it idle, so I can't tell a wait that never wakes apart from one starved by the scheduler. It may be worth checking whether those three cases depend on a thread getting scheduled within a time window: the layer's release path, or the held-batch thread waking on the fence.
  • Merge order: main has moved since (aa2988c), and git merge-tree now reports a conflict with it in runtime/shims/d3d12_com.cpp.

AI-assisted (Claude).

@AlxcBTW

AlxcBTW commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

I've merged main at 03b09a08; the head is now 003baa94. The only conflict was in CommandQueue::Signal, where main's claim(value, true) and this PR's fence keep-alive pin now sit together.

Tested with LEONIDA_VK_VALIDATION=1, 0 VUIDs:

  • Handover test, all modes, both GPUs: 592/592 exact on the layer, 587/587 on the host runtime, --shared-queue 592, --two-queues 8.
  • Full ctest on the RTX 5070: 156/156.
  • Full ctest on the Radeon 880M: 155/156. The failure is d3d12_vulkan_device (D24 copy readback against the host), which flakes on that GPU under validation on plain main as well: 1 of 12 runs passed on a worktree of 03b09a08. I haven't found the cause.

AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants