Repository navigation
Tests: fail predicated copy on Vulkan initialization errors - #1355
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
Conversation
|
Code review (CPU): pass
Clean and surgical fix. AI-assisted. |
Contributor
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51, llvm-mc 23.1.6): pass. |
Contributor
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 in the coordination issue as: new TEST item in #1218, a follow-up to D3D-152. No separate item ID has been assigned.
What and why
Depends on: #1314, #1266 (both merged)
#1314 made CTest skip
d3d12_predicated_copyon Windows without a Vulkan ICD. The test called the Booleanvk.create()wrapper, which also made CTest skip when Vulkan initialization failed, including when validation was requested and the Khronos layer could not be found.Use the existing
vktest::Device::initialize()status at that one call site, following #1266. An unavailable device exits 77, a setup failure exits 1, and a ready device reaches the existing capability and comparison checks. The--warp-onlypath still bypasses Vulkan initialization.Reproduced review of #1314 · Original coordination finding
Tested
AI-assisted (Codex). Native Windows, MSVC 19.38.33145.0, CMake 4.4.4, Ninja 1.13.2, uv CPython 3.12.13, Vulkan SDK 1.4.363.0, RTX 3080 driver 616.64 and Windows WARP. Built the stock
d3d12_predicated_copy_testtarget from exact parentf85582e23d4ab9e19acbf694358f137d6b8531b1and patch8d40bbf5c3838365f1edf7fc9c9a30c9397873ffin separate RelWithDebInfo directories. Ran the executable and the registeredctest -R ^d3d12_predicated_copy$test.VK_LOADER_DRIVERS_SELECTmatched no manifest; validation offLEONIDA_VK_VALIDATION=1,VK_LAYER_PATHpoints to an empty directory--warp-onlywith no ICD and the requested layer hiddenBoth missing-layer runs printed the helper's diagnostic. Successful RTX and WARP runs each checked 180 copy cases, 16 query-to-copy cases, and 4 recapture controls. The successful validation runs reported zero validation errors. Two earlier patched RTX validation executable attempts stalled and were stopped. The subsequent serial parent and patch reruns passed both directly and under CTest.
Checklist
docs/design.md, with how it was confirmed. (N/A, test-only change.)