vulkaninfo: Dont enable Direct Driver Loading Ext
authorCharles Giessen <charles@lunarg.com>
Fri, 24 Mar 2023 18:04:12 +0000 (12:04 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 24 Mar 2023 18:57:52 +0000 (12:57 -0600)
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

index 2492041..da7d647 100644 (file)
@@ -652,7 +652,10 @@ struct AppInstance {
         AppCompileInstanceExtensionsToEnable();
 
         std::vector<const char *> 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,