aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2023-03-24 12:04:12 -0600
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2023-03-24 12:57:52 -0600
commit2062010d6119cb050376bd72ad634c993efb7aac (patch)
treeeef95327eb4cd06a34761ce429c0fbf769234f11
parentfb440ea67d6709d7d307a69098b72aa153b9dc2f (diff)
downloadusermoji-2062010d6119cb050376bd72ad634c993efb7aac.tar.xz
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.
-rw-r--r--vulkaninfo/vulkaninfo.h5
1 files changed, 4 insertions, 1 deletions
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<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,