Repository navigation
DXGI: preserve swapchain creation flags across resize - #1780
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
Conversation
This was referenced Nov 22, 2026
Contributor
|
Tested e6bb76c on RTX 5090, NVIDIA 621.24, Windows 11: pass. Built the runtime from this tree (Ninja, RelWithDebInfo) and ran |
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.
Claimed as a new D3D item in the coordination thread. Related to the separate buffer-count change in #1766.
The DXGI shim could accept a resize that changed
FRAME_LATENCY_WAITABLE_OBJECTorALLOW_TEARING. For example, adding the waitable flag could makeGetDesc1report a waitable swapchain even though the handle is created only at initialization. Compare these two flags with the current swapchain flags and returnE_INVALIDARGbefore unregistering any back buffers when either flag differs.ResizeBuffers1uses the same check through its existing forwarding path. Waitable swap-chain guidance and tearing flag guidance.Verification
ResizeBuffersandResizeBuffers1. Matching flags succeeded. Every mismatch returnedE_INVALIDARGwith the original dimensions and flags.89b047cdbecause it accepts adding a creation-time flag. With the patch, the tests cover adding and removing each flag, unchanged dimensions and buffer count after rejection, and presenting and waiting after a valid resize of a waitable chain.dxgi_swapchainandd3d12_presenton Windows 11 Pro build 26300, MSVC 19.51, RX 9070 XT driver 32.0.32029.2010, and Vulkan-Headers 1.4.363. Vulkan validation was off. The foreground-window color check skipped. Synthetic inputs only.AI-assisted.