From e36d1627547f2d7891b2d6ceb6a07db8cf0c07fe Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Fri, 12 Feb 2016 08:20:06 -0700 Subject: loader: For dev ext trampoline error code, add error logging --- loader/table_ops.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'loader/table_ops.h') diff --git a/loader/table_ops.h b/loader/table_ops.h index 261ad409..4bf8b410 100644 --- a/loader/table_ops.h +++ b/loader/table_ops.h @@ -37,7 +37,14 @@ #include "vk_loader_platform.h" static VkResult vkDevExtError(VkDevice dev) { - return VK_ERROR_INITIALIZATION_FAILED; + struct loader_device *found_dev; + struct loader_icd *icd = loader_get_icd_and_device(dev, &found_dev); + + if (icd) + loader_log(icd->this_instance, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0, + "Bad destination in loader trampoline dispatch," + "Are layers and extensions that you are calling enabled?"); + return VK_ERROR_EXTENSION_NOT_PRESENT; } static inline void -- cgit v1.2.3