Repository navigation
d3d12_msaa_draw, d3d12_translated_draw: skip with 77 when there is no Vulkan device (TEST-652) - #3301
Conversation
… Vulkan device (TEST-652)
Both did EXPECT(d.create()), which turns "no Vulkan driver" into a failure. The hosted Windows CI runner has no
GPU, so d3d12_msaa_draw was the one red test on every Windows run. They now take vktest::Device::initialize()
and return 77 (their SKIP_RETURN_CODE) on DeviceStatus::unavailable, like d3d12_clear_test and the rest; a device
that exists but fails to come up is still a failure.
Reproduced locally with VK_LOADER_DRIVERS_SELECT matching no driver: d3d12_msaa_draw exited 1 ("line 49:
d.create()") on main and exits 77 now (ctest: Skipped); d3d12_translated_draw likewise. With the GPU both still
pass under LEONIDA_VK_VALIDATION=1. d3d12_translated_draw only builds with llvm-mc, which the hosted runner
lacks, so it never showed there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Code read and MSVC syntax check on Windows 11 Pro (MSVC 19.44, C++20): pass. Both Closed duplicate #3308 in deference to this PR. No game files used. AI-assisted. |
0xTehuti
left a comment
There was a problem hiding this comment.
Hardware Certification Review — NVIDIA GeForce RTX 2070 SUPER (Turing TU104)
Tested and verified on physical hardware on Windows 11 x64:
- GPU: NVIDIA GeForce RTX 2070 SUPER (8192 MB VRAM, Turing TU104)
- Driver: NVIDIA 595.79.0.0 (Vulkan 1.4.329)
- Toolchain: MSVC 19.44.35225 x64 + CMake 4.4 + Ninja 1.13 + Python 3.13
- OS: Windows 11 Pro x64 (Build 26100)
Empirical Test Results
-
Native execution on physical GPU:
- Subgroup sizes: 32..32 (default 32, requirable in stages 0x3fff, subgroupSizeControl ON, computeFullSubgroups ON)
- d3d12_msaa_draw_test.exe passed: 4x draws resolved, 4096 pixels matched; 64 of 189 edge pixels are partial (red/blue mix); SampleMask 0x1 wrote one sample of four; 3 samples and a mismatched target refused.
- ctest --test-dir runtime/build -R d3d12_msaa_draw: Passed (0.26s, exit code 0).
-
Simulated headless / hosted CI runner (\VK_LOADER_DRIVERS_SELECT=nonexistent):
- Direct execution returned 77.
- ctest --test-dir runtime/build -R d3d12_msaa_draw: Skipped (0.03s, 100% tests passed).
LGTM. Fixes the red CI check on hosted Windows runners cleanly while preserving full functionality on real hardware.
|
Tested
AI-assisted. |
|
Tested 3a276c2 merged onto main f847748 (clean merge) on Windows 11 build 26300, MSVC 19.44, Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0, with two GPUs: RTX 4070 SUPER (NVIDIA 616.64) and Intel UHD 770 (101.7092), picked with
With a GPU, both tests give 0 messages under AI-assisted (Claude Code). No game files. |
kacper-serewis
left a comment
There was a problem hiding this comment.
At 3a276c2 both native Windows MSVC Release binaries returned 77 when the synthetic loader supplied VK_ERROR_INCOMPATIBLE_DRIVER, with CTest marking both skipped and returning 0. VK_ERROR_INITIALIZATION_FAILED made both return 1, report VkResult -3 and fail CTest (exit 8). No GPU needed for this control. AI-assisted.
Jolymmiles
left a comment
There was a problem hiding this comment.
Note
🤖 Gemini 4 Neon responding on behalf of Jolymmiles
Static code review of 3a276c29 against main (f847748c) (macOS host, no Windows/Vulkan execution rerun here): looks good.
- Both
runtime/test/d3d12_msaa_draw_test.cppandruntime/test/d3d12_translated_draw_test.cppreplaceEXPECT(d.create())withd.initialize(), returning77only onvktest::DeviceStatus::unavailable(matchingSKIP_RETURN_CODE 77inruntime/CMakeLists.txt) and preserving test failure onDeviceStatus::failedviaEXPECT(device_status == vktest::DeviceStatus::ready). - Audited all 74 unique CTest entries with
SKIP_RETURN_CODE 77inruntime/CMakeLists.txtonf847748c: only three tests still useEXPECT(d.create())(d3d12_msaa_draw,d3d12_translated_draw, andd3d12_geometry). This PR together with#3360closes all three. - Cleanly mergeable onto
f847748c, no game files.
TEST-652, claimed in #3232: #3232 (comment) (found by @Vonsek).
What and why
runtime/test/d3d12_msaa_draw_test.cpp:49didEXPECT(d.create()). With no Vulkan driver, that is a failure, not a skip. The hosted Windows CI runner has no GPU, so this was the one red test in every Windows run, onmainand on unrelated PRs. I wrote that test in #831, and the sibling tests already handle this.The fix:
d3d12_msaa_draw_testandd3d12_translated_draw_test, which has the same line, now takevktest::Device::initialize().DeviceStatus::unavailablethey return 77, their registeredSKIP_RETURN_CODE, asd3d12_clear_test.cpp:288-289and the rest do.unavailablemeans no Vulkan loader,VK_ERROR_INCOMPATIBLE_DRIVER, or no usable device.d3d12_translated_drawbuilds only with llvm-mc, which the hosted runner doesn't have, so it never showed up in CI. It had the same latent failure on a machine with llvm-mc and no GPU.Why the runner has no device: a hosted runner has no Vulkan ICD.
vkCreateInstancethen returnsVK_ERROR_INCOMPATIBLE_DRIVER, whichinitialize()reports asunavailable. I reproduced that locally instead of from the CI log.Tested
Windows 11 Pro 26300, MSVC 19.4x, Vulkan SDK 1.4.363.0, RX 7800 XT and Radeon iGPU (AMD 26.10.1).
mainVK_LOADER_DRIVERS_SELECT='*nonexistent*' d3d12_msaa_draw_test(no driver)line 49: d.create()ctest: Skippedd3d12_translated_draw_test(built with llvm-mc)LEONIDA_VK_VALIDATION=1ctest -R2/2AI-assisted (Claude Code).
🤖 Generated with Claude Code