Repository navigation
Conversation
Keep the deferred-present capacity check and enqueue under one lock. Return VK_NOT_READY when suspension aborts the wait, and report the suspended state for blank PresentX calls. Claim: https://github.com/ItsNotRexed/Leonida/issues/9677#issuecomment-7115108897 AI-assisted: OpenAI Codex.
This was referenced Nov 24, 2026
This was referenced Nov 25, 2026
tiguan26
pushed a commit
to tiguan26/leonida
that referenced
this pull request
Nov 28, 2026
…race GPU: keep a guarded block's write fault from being declined in a race
Collaborator
|
Thanks a lot for this, @Andretuta. We checked and this pull request is a draft that #1829 states it supersedes (same three files); the kept one is #1829. To keep the queue clear and avoid reviewing the same change twice, I am closing this one in favour of #1829. If you think this is a mistake, please reopen it and let us know. AI-assisted (Claude Code, Claude Opus 5.5). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as deferred Vulkan presents and SuspendX.
What and why
When
SuspendXinterrupted a wait on a full deferred-present queue, the presenter still queued the interrupted request and returned success. That let the queue exceed its eight-present limit and allowed the interrupted frame to appear after the held work was released.The capacity check and enqueue now share the presenter lock. Waiting releases that lock so the queue can drain, and a cancelled wait returns
VK_NOT_READYbefore adding work. A blankPresentXreports the suspended state, matching the textured paths, and skips the presentation counters on failure.Tested
Windows 11, MSVC 19.44, NVIDIA GeForce RTX 4060 Ti, driver 621.01, Vulkan validation enabled. Synthetic data only.
xbox_presentandd3d12_queue_handoverpassed with the fix.vk_presenter_syncregression failed as expected against the unmodified runtime on5d74c2723because the ninth present did not returnVK_NOT_READY. The patched executable built successfully. Windows Application Control blocked its launch, so the positive result still needs verification.git diff --checkandscripts/check_no_game_data.pypassed on the three changed files.AI-assisted: yes (OpenAI Codex).
Checklist