loader: Change error to warning for missing layer registry key
authorJon Ashburn <jon@lunarg.com>
Tue, 9 Feb 2016 18:03:09 +0000 (11:03 -0700)
committerJon Ashburn <jon@lunarg.com>
Tue, 9 Feb 2016 23:25:49 +0000 (16:25 -0700)
Continue to report an error for missing ICD registry key

loader/loader.c

index df1c219..f4a403b 100644 (file)
@@ -2032,8 +2032,15 @@ static void loader_get_manifest_files(const struct loader_instance *inst,
 #if defined(_WIN32)
         loc = loader_get_registry_files(inst, loc);
         if (loc == NULL) {
-            loader_log(inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0,
-                       "Registry lookup failed can't get manifest files");
+                       if (!is_layer) {
+                               loader_log(inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0,
+                                       "Registry lookup failed can't get ICD manifest files, do you have a Vulkan driver installed");
+                       }
+                       else {
+                               //warning only for layers
+                               loader_log(inst, VK_DEBUG_REPORT_WARN_BIT_EXT, 0,
+                                       "Registry lookup failed can't get layer manifest files");
+                       }
             return;
         }
 #endif