Repository navigation
DXGI: validate flip-model swapchain sample descriptions - #1940
Conversation
|
Tested
|
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): no regression from this PR. RTX 4080 SUPER: 111/113 pass. On current |
|
Tested 09857df natively on Windows with NVIDIA and AMD: pass, no regressions. Setup: Windows 11 Pro 10.0.26300, MSVC 19.44.35230 (VS 2022 Build Tools), Vulkan SDK 1.4.363.0,
AI-assisted (Claude Code). |
|
Tested 09857df on an NVIDIA GeForce RTX 3050 Laptop GPU, driver 32.0.16.2101, Windows 11, native MSVC (VS 2022 Build Tools, Ninja, RelWithDebInfo): pass.
AI-assisted (Claude Code). |
Claimed as a new D3D item in the coordination thread.
The DXGI shim ignored
SampleDescand created a single-sample chain even for invalid descriptions. Require count 1 and quality 0 before creating a flip-model swapchain.CreateSwapChainForHwndreturnsDXGI_ERROR_INVALID_CALLfor other values, and the implemented CoreWindow path inherits the check through its HWND forwarding. Microsoft's flip-model requirements.Native HWND and legacy desktop creation on WARP and an RX 9070 XT accepted
(1, 0)and rejected(0, 0),(2, 0),(4, 0), and(1, 1)withDXGI_ERROR_INVALID_CALL. The shim regression covers the same invalid descriptions on a Win32 HWND and a mock CoreWindow backed by a real Win32 window. It failed on the upstream parent when the shim created a chain for an invalid description.Built the runtime and passed
dxgi_swapchainandd3d12_presenton Windows 11 Pro build 26300, MSVC 19.51, Radeon 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.