From 12b3a9babed46b4d1e7a8f07456141da94066c5b Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Tue, 19 May 2015 10:05:54 -0600 Subject: layers: GPA table initialization shouldn't recurse --- layers/multi.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'layers/multi.cpp') diff --git a/layers/multi.cpp b/layers/multi.cpp index 1d6764b8..33af2720 100644 --- a/layers/multi.cpp +++ b/layers/multi.cpp @@ -145,6 +145,8 @@ VK_LAYER_EXPORT void * VKAPI multi1GetDeviceProcAddr(VkDevice device, const char getLayer1Table(devw); + if (!strcmp("vkGetDeviceProcAddr", pName)) + return (void *) multi1GetDeviceProcAddr; if (!strcmp("vkCreateSampler", pName)) return (void *) multi1CreateSampler; else if (!strcmp("vkCreateGraphicsPipeline", pName)) @@ -167,6 +169,8 @@ VK_LAYER_EXPORT void * VKAPI multi1GetInstanceProcAddr(VkInstance inst, const ch getLayer1InstanceTable(instw); + if (!strcmp("vkGetInstanceProcAddr", pName)) + return (void *) multi1GetInstanceProcAddr; if (!strcmp("vkEnumerateLayers", pName)) return (void *) multi1EnumerateLayers; else if (!strcmp("GetGlobalExtensionInfo", pName)) @@ -295,6 +299,8 @@ VK_LAYER_EXPORT void * VKAPI multi2GetDeviceProcAddr(VkDevice device, const char getLayer2Table(devw); + if (!strcmp("vkGetDeviceProcAddr", pName)) + return (void *) multi2GetDeviceProcAddr; if (!strcmp("vkCreateCommandBuffer", pName)) return (void *) multi2CreateCommandBuffer; else if (!strcmp("vkBeginCommandBuffer", pName)) @@ -315,6 +321,8 @@ VK_LAYER_EXPORT void * VKAPI multi2GetInstanceProcAddr(VkInstance inst, const ch getLayer2InstanceTable(instw); + if (!strcmp("vkGetInstanceProcAddr", pName)) + return (void *) multi2GetInstanceProcAddr; if (!strcmp("vkEnumeratePhysicalDevices", pName)) return (void *) multi2EnumeratePhysicalDevices; if (!strcmp("vkCreateDevice", pName)) -- cgit v1.2.3