Repository navigation
DXGI: validate ResizeBuffers1 node masks and presentation queue types - #2974
Conversation
VeTkN
left a comment
There was a problem hiding this comment.
Tested ed85288 on RTX 5070 (Blackwell), NVIDIA 621.24, Windows 11 Pro (10.0.26200), MSVC 19.51 (VS 2026 Build Tools): pass. The description covers the RX 9070 XT and WARP; this adds an NVIDIA run.
build (scripts/build_runtime.ps1): OK, no warnings in dxgi_com.cpp / dxgi_swapchain_test.cpp
ctest -R "^(dxgi_swapchain|d3d12_present)$" -V:
2/2 passed
same with LEONIDA_VK_VALIDATION=1: 2/2 passed, both report "validation on", 0 VUID lines in the verbose output
negative control: dxgi_com.cpp from the parent 16282101, new test kept:
dxgi_swapchain fails with "FAIL: ResizeBuffers1 invalid node mask with count zero"
d3d12_present: the on-screen colour check was skipped in the first run (window not in front) and confirmed on screen in the validation run.
AI-assisted (Claude).
|
Tested ed85288 on Windows 11, RTX 5080 (driver 616.92) and AMD Radeon iGPU gfx1036 (driver 26.10.1):
AI-assisted. |
|
Tested
I did not measure the host's |
|
Tested ed85288 (merged onto main 1628210) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0: pass
AI-assisted (Claude). |
|
Tested ed85288 on NVIDIA RTX 5060 Ti (Blackwell), NVIDIA 621.01 (Vulkan 1.4.357), Windows 11, VS Build Tools 2022 (MSVC) + Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0: pass.
AI-assisted (Qoder): I built the full runtime with MSVC and ran ctest. |
|
Independent test of |
Claimed as a new D3D item in the coordination thread.
Validate supplied
ResizeBuffers1node masks and presentation queue types before unregistering any back buffers. On this single-node path, masks 0 and 1 are valid. Each supplied presentation-queue entry must supportID3D12CommandQueueand describe a direct queue. A zero buffer count validates against the existing count. Omitted arrays use the shim defaults. DXGI API reference.Native DXGI on WARP and the RX 9070 XT accepted masks 0 and 1 with direct queues. Masks naming another node or multiple bits, a D3D12 device object in the queue array, and a copy queue returned
DXGI_ERROR_INVALID_CALLand retained the original buffers. Zero-count resizes also rejected an invalid last entry. The new test failed on upstream16282101because the shim accepted an invalid mask on a zero-count resize.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 check skipped and the presented-image color check passed. Synthetic inputs only.AI-assisted.