From 2062010d6119cb050376bd72ad634c993efb7aac Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Fri, 24 Mar 2023 12:04:12 -0600 Subject: vulkaninfo: Dont enable Direct Driver Loading Ext The VK_LUNARG_direct_driver_loading extension, when enabled, causes spurious warnings in the loader. Vulkaninfo should just not enable it to prevent these warnings from apperaing in the output. --- vulkaninfo/vulkaninfo.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h index 2492041e..da7d647e 100644 --- a/vulkaninfo/vulkaninfo.h +++ b/vulkaninfo/vulkaninfo.h @@ -652,7 +652,10 @@ struct AppInstance { AppCompileInstanceExtensionsToEnable(); std::vector inst_exts; - for (const auto &ext : inst_extensions) inst_exts.push_back(ext.c_str()); + for (const auto &ext : inst_extensions) { + if (ext == "VK_LUNARG_direct_driver_loading") continue; // skip this extension since it triggers warnings in the loader + inst_exts.push_back(ext.c_str()); + } const VkInstanceCreateInfo inst_info = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, -- cgit v1.2.3