Repository navigation
test(runtime): register d3d12_vulkan_device_test with CTest - #657
Conversation
The test was built but only run by hand, so GPU-specific failures (for example the AMD GetResourceTiling one) never showed up in ctest. Return 77 when no Vulkan device can be created and register the test with SKIP_RETURN_CODE 77 so CI reports it as skipped rather than failed.
|
Tested 99f6f0b merged onto main c432cdc on NVIDIA GeForce RTX 4060 Ti (Ada), driver 32.0.16.2124 (NVIDIA 621.24), Windows 11 Home 26300, MSVC 2022 / Ninja, Vulkan SDK 1.4.363: pass, both halves of TEST-89.
AI-assisted. |
|
Tested 99f6f0b on RTX 4090 (driver 621.14), Windows 11 26200, MSVC 19.44: pass
No game files used. AI-assisted run (Claude Code). |
|
On Could the setup result distinguish an unavailable device from a failure to initialize explicitly requested validation? Returning a failure for the latter would let CI catch a runner that lost its validation layer while keeping the skip for machines without a device. AI-assisted, Windows Server 2022, Mesa 26.3.1 llvmpipe. Both runs and device probes. |
|
Code review at |
What
TEST-89:
d3d12_vulkan_device_testwas built but never registered with CTest, so GPU-specific failures (for example the AMDGetResourceTilingone) stayed out of CI.vktest::Device::create()fails, the conventional skip code.runtime/CMakeLists.txtregisters it asd3d12_vulkan_devicewithSKIP_RETURN_CODE 77, inside the existing Vulkan/Windows block.Testing
ctest -R d3d12_vulkan_deviceruns and passes on an RTX 5090 (Blackwell, driver 621.24, Vulkan 1.4.357).VK_ICD_FILENAMESpointing at a missing file, the same ctest invocation reports***Skippedand exits 0 instead of failing.AI-assisted; the author reviewed the changes.