From 0a506d6db5034f08a26c21d94e3bc8f4fa8133bf Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Wed, 30 Sep 2015 12:56:42 -0600 Subject: loader: Fixes in trampoline code to support layers which wrap objects Loader trampoline code may see wrapped objects. Don't do value comparisons of dispatchable objects but instead compare dispatch tables to find objects. PhysicalDevice objects where may have multiple gpus with same instance dispatch will be fixed in a later patch. --- loader/debug_report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loader/debug_report.c') diff --git a/loader/debug_report.c b/loader/debug_report.c index c8686dc0..fd66ab5d 100644 --- a/loader/debug_report.c +++ b/loader/debug_report.c @@ -78,7 +78,7 @@ static VkResult debug_report_DbgCreateMsgCallback( if (!pNewDbgFuncNode) return VK_ERROR_OUT_OF_HOST_MEMORY; - struct loader_instance *inst = loader_instance(instance); + struct loader_instance *inst = loader_get_instance(instance); loader_platform_thread_lock_mutex(&loader_lock); VkResult result = inst->disp->DbgCreateMsgCallback(instance, msgFlags, pfnMsgCallback, pUserData, pMsgCallback); if (result == VK_SUCCESS) { @@ -99,7 +99,7 @@ static VkResult debug_report_DbgDestroyMsgCallback( VkInstance instance, VkDbgMsgCallback msg_callback) { - struct loader_instance *inst = loader_instance(instance); + struct loader_instance *inst = loader_get_instance(instance); loader_platform_thread_lock_mutex(&loader_lock); VkLayerDbgFunctionNode *pTrav = inst->DbgFunctionHead; VkLayerDbgFunctionNode *pPrev = pTrav; -- cgit v1.2.3