summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenny Komow <lenny@lunarg.com>2018-11-12 13:52:50 -0700
committerLenny Komow <lenny@lunarg.com>2018-11-12 14:13:40 -0700
commitabe5c2b3c33e42fff883d32d4c168556fb29b3ba (patch)
tree9af5ebc1738f6383340326d767b154e776d6b3a8
parenta29f808461116a33caed15529fc10a0285dd3d70 (diff)
downloadVulkan-Loader-abe5c2b3c33e42fff883d32d4c168556fb29b3ba.tar.gz
Vulkan-Loader-abe5c2b3c33e42fff883d32d4c168556fb29b3ba.tar.bz2
Vulkan-Loader-abe5c2b3c33e42fff883d32d4c168556fb29b3ba.zip
loader: Downgrade layer json warning to info
The loader used to warn when using the vkGet*ProcAddr fields in a layer json file from 1.1.0 on. However, it was desirable for applications to still use this field to allow support from older loaders. As such, this is no longer a warning. Change-Id: I401febffe0a15081772dd4a791f5fffbd98d6ac9
-rw-r--r--loader/loader.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 215a9d70..28185158 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2955,10 +2955,10 @@ static VkResult loaderReadLayerJson(const struct loader_instance *inst, struct l
if (vkGetInstanceProcAddr != NULL) {
strncpy(props->functions.str_gipa, vkGetInstanceProcAddr, sizeof(props->functions.str_gipa));
if (version.major > 1 || version.minor >= 1) {
- loader_log(inst, VK_DEBUG_REPORT_WARNING_BIT_EXT, 0,
+ loader_log(inst, VK_DEBUG_REPORT_INFORMATION_BIT_EXT, 0,
"Layer \"%s\" using deprecated \'vkGetInstanceProcAddr\' tag which was deprecated starting with JSON "
- "file version 1.1.0. Instead, use the new vkNegotiateLayerInterfaceVersion function to return the "
- "GetInstanceProcAddr function for this layer.",
+ "file version 1.1.0. The new vkNegotiateLayerInterfaceVersion function is preferred, though for "
+ "compatibility reasons it may be desirable to continue using the deprecated tag.",
name);
}
}
@@ -2966,10 +2966,10 @@ static VkResult loaderReadLayerJson(const struct loader_instance *inst, struct l
if (vkGetDeviceProcAddr != NULL) {
strncpy(props->functions.str_gdpa, vkGetDeviceProcAddr, sizeof(props->functions.str_gdpa));
if (version.major > 1 || version.minor >= 1) {
- loader_log(inst, VK_DEBUG_REPORT_WARNING_BIT_EXT, 0,
+ loader_log(inst, VK_DEBUG_REPORT_INFORMATION_BIT_EXT, 0,
"Layer \"%s\" using deprecated \'vkGetDeviceProcAddr\' tag which was deprecated starting with JSON "
- "file version 1.1.0. Instead, use the new vkNegotiateLayerInterfaceVersion function to return the "
- "GetDeviceProcAddr function for this layer.",
+ "file version 1.1.0. The new vkNegotiateLayerInterfaceVersion function is preferred, though for "
+ "compatibility reasons it may be desirable to continue using the deprecated tag.",
name);
}
}