loader: Fix overzealous duplicate manifest warning
authorLenny Komow <lenny@lunarg.com>
Thu, 23 Aug 2018 20:19:43 +0000 (14:19 -0600)
committerLenny Komow <lenny@lunarg.com>
Thu, 23 Aug 2018 20:59:58 +0000 (14:59 -0600)
This downgrades the warning when a manifest file is given multiple
times to a debug message (previously it was a warning). This is
because any Windows system that has multiple GPUs that use the same
driver will encounter duplicates as correct behavior.

Change-Id: Id64f4c34d58c4b806164b3e7cd7a07dab36ab88f

loader/loader.c

index 864b659e7ac47a07f9cb9479f8dad3b2c61d0109..8ad78b13b53abde2a7fa3b9760dd95371064bca0 100644 (file)
@@ -3370,7 +3370,10 @@ static VkResult loader_get_manifest_files(const struct loader_instance *inst, co
                 strcpy(out_files->filename_list[out_files->count], name);
                 out_files->count++;
             } else if(file_already_loaded) {
-                loader_log(inst, VK_DEBUG_REPORT_WARNING_BIT_EXT, 0,
+                // If the file has already been loaded we want to silently skip it. We do not want to report an error because having
+                // multiple GPUs using the Windows PnP registries with the same driver are expected to see a duplicate entry. We
+                // leave this as a debug message because it can still be useful in loader debugging.
+                loader_log(inst, VK_DEBUG_REPORT_DEBUG_BIT_EXT, 0,
                     "Skipping manifest file %s - The file has already been read once", name);
             } else if (!list_is_dirs) {
                 loader_log(inst, VK_DEBUG_REPORT_WARNING_BIT_EXT, 0, "Skipping manifest file %s, file name must end in .json",