Repository navigation
Vulkan device-filter CTest: distinguish unavailable hardware from probe failure - #9698
LukeOsland1 wants to merge 2 commits into
Conversation
…T-1141) Both tools ranked the devices themselves and ignored LEONIDA_VK_DEVICE, so on a PC with two GPUs they ran on the best-ranked one whatever the filter said. vk_sandbox now uses vk_device_pick.h's pick_device, and vk_descriptor_bench skips devices the filter leaves out. When the filter matches no usable device, both report it and fail the run, as the other harnesses do. check_device_filter_tools.py (ctest vk_device_filter_tools) runs both tools with a filter that matches nothing and skips on a machine with no Vulkan device.
|
Tested
Targeted build only ( AI-assisted (Claude Code). |
|
The follow-up fixes the exit-23 false skip I reported on #9605. A real Vulkan probe saw the Radeon with an unmatched filter set, and One startup distinction remains. In a Linux-only scratch refinement, passing the open-state alongside the function pointer makes the checker fail when a library opens without that export (1). The genuine unavailable cases still skip (77), and the create/enumeration errors still fail (1). It would be useful to preserve that distinction when adjusting the shared API in #9615. Diff and no-game-data checks passed. Validation was limited to the focused tests and the probe. AI-assisted (Codex). |
Grimkaaah
left a comment
There was a problem hiding this comment.
Independent review (Linux CPU) — PASS (self-test; Vulkan tools not run)
Checked
vk_descriptor_bench/vk_sandboxrefuse a non-matchingLEONIDA_VK_DEVICEinstead of falling back; new CTest helper + probe-status self-test.python3 -I runtime/test/check_device_filter_tools.py --self-test-probe-status→ exit 0.
Not executed here: live Vulkan binaries against a real filter (needs built harnesses).
No game files. Reviewer: Grimkeh (AI-assisted Cursor / Composer).
Depends on: #9605
The device-filter CTest treated every unsuccessful enumeration as a machine without a GPU. A synthetic enumerator exiting 23 made the old checker skip. The updated checker fails that case and includes the child diagnostic.
The bench has an explicit device-availability probe that distinguishes absent loader, compatible ICD or physical device from unexpected Vulkan errors. The checker verifies both the status and the diagnostic. A subprocess regression covers success, genuine unavailability and unrelated failures including an unrecognized exit 77. The list interface retains its existing behavior.
Windows 11 26300, MSVC 19.51.36248, Vulkan SDK 1.4.341.1. Five focused CTests passed: vulkan_device_filter, vk_device_filter_tools, vk_device_filter_probe_status, vk_device_pick and vk_descriptor_bench_selftest. Selecting a nonexistent Vulkan ICD produced the expected CTest skip. Real quick benchmarks selected both the RTX 4070 Ti SUPER (32.0.16.1088) and AMD Radeon(TM) Graphics (32.0.21042.62). Synthetic inputs only. AI-assisted implementation and testing.
Original claim, no new item ID assigned · Reported preflight failure