Skip to content

Tests: run four more GPU test programs under ctest, skipping without a Vulkan driver - #1050

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
quackottu:ctest-four-gpu-tests
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
quackottu:ctest-four-gpu-tests

Conversation

@quackottu

Copy link
Copy Markdown
Contributor

Four GPU test programs were built but never registered with ctest, so ctest, and the test list the wine job runs, never ran them: d3d12_debug_markers_test, d3d12_fence_timing_test, d3d12_node_mask_test and dxgi_swapchain_test. All four pass on main. Same idea as #883.

  • Each now takes the path the other GPU tests use: vktest::Device::initialize(), exiting 77 when there is no Vulkan GPU.
  • dxgi_swapchain_test builds its own instance. Its two SKIP: branches exited 0, and with no driver at all it failed at vkCreateInstance. Both cases now exit 77.
  • Each test gets add_test + SKIP_RETURN_CODE 77, next to its target.

d3d12_node_mask_test.cpp is also changed by #992, but in a different hunk (main()'s device setup here, the queue comparison there).

Tested (Windows 11, RTX 5070, driver 621.24, MSVC 14.44, Vulkan SDK 1.4.363.0, LEONIDA_VK_VALIDATION=1, overlays off):

with the GPU no driver (VK_DRIVER_FILES/VK_ICD_FILENAMES → a missing file)
d3d12_debug_markers Passed Skipped
d3d12_fence_timing Passed Skipped
d3d12_node_mask Passed Skipped
dxgi_swapchain Passed Skipped (on main's test: fails at vkCreateInstance)

No game files.

AI-assisted.

🤖 Generated with Claude Code

…a Vulkan driver

d3d12_debug_markers_test, d3d12_fence_timing_test, d3d12_node_mask_test
and dxgi_swapchain_test were built but had no add_test, so ctest (and the
wine job's test list) never ran them; all four pass on an RTX 5070. Each
now exits 77 when there is no Vulkan GPU or driver, as the other GPU tests
do (dxgi_swapchain's SKIP branches exited 0, and with no driver at all it
failed at vkCreateInstance), and is registered with SKIP_RETURN_CODE 77.
@kapitche

Copy link
Copy Markdown
Contributor

Tested 37e9e1e on Windows 11 with two GPUs on one machine (MSVC 14.51, full shader toolchain):

RTX 4080 SUPER (32.0.16.1714) Intel UHD 770 (32.0.101.6129)
ctest 51/51 49/51

The four newly registered programs (d3d12_debug_markers, d3d12_fence_timing, d3d12_node_mask, dxgi_swapchain) pass on both GPUs. The two Intel failures are unrelated issues that also fail on main: d3d12_vulkan_device's OPTIONS1 host comparison (#962), and d3d12_descriptor's fractional min-LOD case (an Intel driver truncation, diagnosed in #634).

@ItsJaved

Copy link
Copy Markdown
Contributor

Tested 37e9e1e on Windows 11 (RTX 5090, driver 621.24 / 32.0.16.2124, MSVC 19.51.36247.0, Vulkan SDK 1.4.363.0, VK_LOADER_LAYERS_DISABLE=~implicit~, LEONIDA_VK_VALIDATION=1):

  • ctest --test-dir runtime/build -R "^(d3d12_debug_markers|d3d12_fence_timing|d3d12_node_mask|dxgi_swapchain)$" -V: 4/4 pass (2.28 sec).

Note: under LEONIDA_VK_VALIDATION=1, d3d12_fence_timing still prints VUID-vkCreateDevice-ppEnabledExtensionNames-01387 (VK_KHR_swapchain without VK_KHR_surface on create_vulkan_device_standalone) before passing — fixed separately in #1027 / #1038. No game files. AI-assisted.

@ItsNotRexed
ItsNotRexed merged commit 2c99d82 into ItsNotRexed:main Nov 22, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants