Repository navigation
Conversation
This was referenced Nov 27, 2026
Tyrannys
approved these changes
Nov 27, 2026
Tyrannys
left a comment
Contributor
There was a problem hiding this comment.
Independent verification of head b8486b4a5 on profile M: RTX 4070 SUPER 12 GB, NVIDIA 621.01, Windows 11, Ryzen 7 9800X3D. MSVC RelWithDebInfo.
- Negative control,
main39f52f39c:ctest -C RelWithDebInfo --output-on-failure -R "^xbox_present$"failed 2 of 2 runs, atline 1226: present_planes(&one, 1)(case F, window resize). So this is not just an RTX 5070 issue: the 4070 SUPER on 621.01 hits it too. - With this PR (merged on
39f52f39ctogether with #2505, which only touches a compile-pool test):ctest -C RelWithDebInfo --output-on-failure -R "^(xbox_present|d3d12_present)$"passed 3 of 3 runs (xbox_present2.95-4.06 s,d3d12_present1.62-1.97 s). The resize case is part ofxbox_present, and it ran on the card. - Code read:
pending_capture_(disk capture) is still set only for a shown present.captured_is now also set forVK_ERROR_OUT_OF_DATE_KHR, but only aftervkQueueSubmitsucceeded, so the copy intocapture_buffer_was really queued.VK_ERROR_SURFACE_LOST_KHRstill clears it.
Clean. Approving. No game files used.
AI-assisted (Claude Code).
Contributor
|
Reviewed at head Verification
Notes (non-blocking)
Approve. AI-assisted review + local MSVC/dual-GPU verification. |
This was referenced Nov 28, 2026
4 tasks done
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.
Summary
Fixes a regression from
9f98dcc61(RT-POST-LOAD-GPU-MEMORY) inVulkanPresenter::submit_now()(runtime/src/vulkan_present.h) that brokexbox_presentcase F (xbox_present_test.cpp:1226) on NVIDIA RTX 5070 during window resize.When the window is resized between presents,
vkQueuePresentKHRon Windows/NVIDIA can returnVK_ERROR_OUT_OF_DATE_KHRafter the command buffer -- including thevkCmdCopyImageToBuffertransfer intocapture_buffer_-- has already been submitted (submitted == VK_SUCCESS).submit_now()still returnsVK_SUCCESS, andxbox_present_test.cpp:1224explicitly expects the composed frame to remain readable throughread_back().Commit
9f98dcc61clearedcaptured_ = falsebefore submission and moved thecaptured_ = trueassignment insideif (result == VK_SUCCESS || result == VK_SUBOPTIMAL_KHR). As a result, anyVK_ERROR_OUT_OF_DATE_KHRfromvkQueuePresentKHRleftcaptured_ == falseand causedread_back()to fail.This change:
pending_capture_ = frame.done) gated onVK_SUCCESS || VK_SUBOPTIMAL_KHRso only shown frames are written to disk.captured_,captured_extent_, andcaptured_format_whenevercopy_frame && capture_ptr_ran andresultisVK_SUCCESS,VK_SUBOPTIMAL_KHR, orVK_ERROR_OUT_OF_DATE_KHR(leavingVK_ERROR_SURFACE_LOST_KHRand other failures uncaptured).Verification
main39f52f39c):ctest --output-on-failure -R ^xbox_present$failed deterministically atxbox_present_test.cpp:1226(line 1226: present_planes(&one, 1)) during case F window resize (320x240 -> 400x300).ctest --output-on-failure -R ^(xbox_present|d3d12_present)$: 2/2 passed (d3d12_present1.45 s,xbox_present2.76 s).python -I scripts/check_no_game_data.py runtime/src/vulkan_present.h: pass.python -I tests/test_ctest_registration.py -v: pass.git diff --check: clean;git merge-treeclean against open PRs Preserve sRGB midtones on the SDR UNORM swapchain fallback #2001 and Treat BGRX overlays as opaque in PresentX composition #2014.Claimed in #1608 (comment) (
RT-PRESENT-RESIZE-READBACK). No game files used.GPUs tested: NVIDIA GeForce RTX 5070 12 GB (Windows 11, driver 610.88, Vulkan 1.4.341;
VK_LAYER_KHRONOS_validationnot installed locally).AI-assisted (Antigravity, Gemini).