Repository navigation
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Built and ran vk_queue_query_sync_test at ee7599dcd on Windows 11, RTX 5070 Ti: exit 0, all six cases ok:
remove_query_pool serialized with QueryReplay::commitcross-queue QueryReplay::plan serialized with commitpending Wait() preserved across failed vkQueueSubmitbindless rollback precedes next prepare (regular path)bindless rollback precedes next prepare (early path)concurrent multi-queue query stress
The change keeps tracker_mutex_ through the bindless_commit(submitted) call on both the success and the early-error paths, so another queue's prepare cannot observe the stale pending upload between the failed submit and the rollback; the lock hierarchy comment now names the callback's descriptor_mutex_ position, and the probe hook is under LEONIDA_VULKAN_QUEUE_SYNC_TEST_HOOKS. git diff --check clean. No blocking issue.
Stacking note: the branch also carries db51b7d3f (Mods) and 9e6444fad (archetype hook), both owner-authored, under the fix; merging this PR lands both. It merges cleanly with the other five PRs carrying the same base, but the base itself is not part of this PR's subject.
Flyander
left a comment
There was a problem hiding this comment.
Reviewed head ee7599d. Keeping the tracker lock through the bindless rollback callback serializes that rollback before the next queue can prepare or submit against the descriptor state; both the ordinary and early-failure paths are covered by the deterministic two-queue test hook. I found no additional defect in this diff.
|
Verified commit
Reviewed AI-assisted (Gemini, Antigravity). |
|
PASS. CMake+Ninja/MSVC built No blocking issue: the test-only hook is target-scoped ( Approve. AI-assisted review, no game files, no game GPU. |
|
One extra nit from a second pass: Not blocking - the fix and its negative control both reproduce as claimed. AI-assisted review, no game files, no game GPU. |
|
Tested |
|
Reviewed on Linux without building (no cmake/GPU here): moving bindless_commit() inside the tracker_mutex_ hold on both failed-submit paths is the right serialization, the test hook is properly ifdef-gated to the test target, and the updated lock-hierarchy comment matches the call sites. Nothing on the Python side is affected; compileall is clean. Needs a vk_queue_query_sync ctest on a Vulkan device to close out; no CI checks were scheduled on this branch. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Thanks for reviewing. The current |
|
Tested I built For the negative control, I moved both tracker unlocks back before the bindless commit callback and kept the test hook. I ran the regular and early-error cases separately. Each case exits 1 on both adapters with This run covers the focused synchronization test with real Vulkan queues and synthetic submit failures. Vulkan validation layers were unavailable. AI-assisted. |
Keep the tracker lock through bindless commit on both submit paths, and add a synthetic two-queue regression that demonstrates the stale upload interleaving. # Conflicts: # runtime/src/vulkan_backend.h # runtime/test/vk_queue_query_sync_test.cpp
ee7599d to
c6846f7
Compare
|
Rebased #4672 onto current main |
|
Tested
AI-assisted (Claude Code). |
|
Tested
What the rebased head changes. On Negative control (test kept, order swapped back to
So on this machine the new test catches a regression on each path separately. |
|
Tested c6846f7 on Windows 11, AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32029.2010: concern (the new cases pass; the test binary still exits 1 most runs, same as main)
AI-assisted (Claude Code). |
Claimed in the coordination issue as: #4571 (comment)
What and why
A failed vkQueueSubmit can consume a bindless upload obligation during prepare, then release tracker_mutex_ before bindless_commit(false) restores it. Another queue can prepare in that gap and submit stale table contents. Keep the tracker lock through commit on both the normal and early-error paths. Add a synthetic two-queue regression that checks queue B observes rollback before prepare; its probe is enabled only for the test target. This is distinct from #4517.
Tested
AI-assisted: yes (Codex daybreak-blue implementation and independent review).
Checklist