From a3ea611cd23742fbbd9f337a51df6f6dd7079975 Mon Sep 17 00:00:00 2001 From: beau-lunarg Date: Tue, 18 Feb 2025 14:56:57 -0500 Subject: [PATCH] Add back portability enumeration support --- test/test_apps/common/test_app_base.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_apps/common/test_app_base.cpp b/test/test_apps/common/test_app_base.cpp index 007e7d2b24..532f9884b8 100644 --- a/test/test_apps/common/test_app_base.cpp +++ b/test/test_apps/common/test_app_base.cpp @@ -830,6 +830,16 @@ Instance InstanceBuilder::build() const extensions.push_back(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME); } +#if defined(VK_KHR_portability_enumeration) + bool portability_enumeration_support = detail::check_extension_supported(system.available_extensions, VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME); + if (portability_enumeration_support) + { + extensions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME); + } +#else + bool portability_enumeration_support = false; +#endif + if (!info.headless_context) { auto check_add_window_ext = [&](const char* name) -> bool {