diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-09-30 12:56:42 -0600 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2015-10-02 11:06:05 -0600 |
| commit | 0a506d6db5034f08a26c21d94e3bc8f4fa8133bf (patch) | |
| tree | 7a5000cce5c1d4dc2cb2a2d976f8635c662d4e28 /loader/debug_report.c | |
| parent | f347df9242e2821251dd20c7b7c1822b6139d36c (diff) | |
| download | usermoji-0a506d6db5034f08a26c21d94e3bc8f4fa8133bf.tar.xz | |
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.
Diffstat (limited to 'loader/debug_report.c')
| -rw-r--r-- | loader/debug_report.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
