aboutsummaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2018-04-18 15:23:43 -0600
committerLenny Komow <lenny@lunarg.com>2018-04-18 17:40:19 -0600
commit0711584159499f75fb883f23510ea585f59a3dbe (patch)
tree0d4ddb54fc62ef6ad38fb60ad4c80676538725ea /loader
parent5028ecda28b6c8cf155caddf360f20ffe53897bf (diff)
downloadusermoji-0711584159499f75fb883f23510ea585f59a3dbe.tar.xz
loader: Clarify loader warning
Clarify several loader warnings about layers so that they include the name of the layer that is causing an issue. Change-Id: Ie48d73f6cc8466c3114597831fef451b3ab32bf7
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 99085957..d5a0f45a 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2709,12 +2709,10 @@ static VkResult loader_read_json_layer(const struct loader_instance *inst, struc
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,
- "Indicating layer-specific vkGetInstanceProcAddr "
- "function is deprecated starting with JSON file "
- "version 1.1.0. Instead, use the new "
- "vkNegotiateLayerInterfaceVersion function to "
- "return the GetInstanceProcAddr function for this"
- "layer");
+ "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.",
+ name);
}
}
props->functions.str_gipa[sizeof(props->functions.str_gipa) - 1] = '\0';
@@ -2722,12 +2720,10 @@ static VkResult loader_read_json_layer(const struct loader_instance *inst, struc
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,
- "Indicating layer-specific vkGetDeviceProcAddr "
- "function is deprecated starting with JSON file "
- "version 1.1.0. Instead, use the new "
- "vkNegotiateLayerInterfaceVersion function to "
- "return the GetDeviceProcAddr function for this"
- "layer");
+ "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.",
+ name);
}
}
props->functions.str_gdpa[sizeof(props->functions.str_gdpa) - 1] = '\0';