Gracefully handle error results from vkEnumeratePhysicalDevices
authorCharles Giessen <charles@lunarg.com>
Fri, 12 Apr 2024 17:17:50 +0000 (10:17 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 24 Apr 2024 21:31:21 +0000 (15:31 -0600)
commitfa3b7bdefadef01ee9af593245c47ca1a33212f4
treed3bf0aec81683173ef63ef3f54140e28f033fc2e
parente94cd2e354123fc5c92cb7d843dd30f95349539d
Gracefully handle error results from vkEnumeratePhysicalDevices

If any driver returned non-VK_SUCCESS values (except for OOHM) when the
loader calls vkEnumeratePhysicalDevices, it would give up and return
immediately. This could result in perfectly functional drivers being
ignored.

The solution is to just skip over drivers that return non-VK_SUCCESS.
loader/loader.c
loader/loader_windows.c
tests/framework/icd/test_icd.cpp
tests/framework/icd/test_icd.h
tests/loader_regression_tests.cpp