From: Ian Elliott Date: Mon, 23 Nov 2015 17:17:23 +0000 (-0700) Subject: loader: Address Jon Ashburn's review comments. X-Git-Tag: upstream/1.1.92~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3dddf2dabe656720aa2037517b2de30ac698d895;p=platform%2Fupstream%2FVulkan-Headers.git loader: Address Jon Ashburn's review comments. It took a few commits (squashed down into 1) to get it correct. Includes: Use loader_heap_{alloc|free}(). Try to deal correctly with initializing the vkCreate*SurfaceKHR()'s. --- diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h index a75f02a..85d141f 100644 --- a/include/vulkan/vk_layer.h +++ b/include/vulkan/vk_layer.h @@ -173,6 +173,21 @@ typedef struct VkLayerInstanceDispatchTable_ PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR GetPhysicalDeviceSurfaceCapabilitiesKHR; PFN_vkGetPhysicalDeviceSurfaceFormatsKHR GetPhysicalDeviceSurfaceFormatsKHR; PFN_vkGetPhysicalDeviceSurfacePresentModesKHR GetPhysicalDeviceSurfacePresentModesKHR; +#ifdef VK_USE_PLATFORM_MIR_KHR + PFN_vkCreateMirSurfaceKHR CreateMirSurfaceKHR; +#endif +#ifdef VK_USE_PLATFORM_WAYLAND_KHR + PFN_vkCreateWaylandSurfaceKHR CreateWaylandSurfaceKHR; +#endif +#ifdef VK_USE_PLATFORM_WIN32_KHR + PFN_vkCreateWin32SurfaceKHR CreateWin32SurfaceKHR; +#endif +#ifdef VK_USE_PLATFORM_XCB_KHR + PFN_vkCreateXcbSurfaceKHR CreateXcbSurfaceKHR; +#endif +#ifdef VK_USE_PLATFORM_XLIB_KHR + PFN_vkCreateXlibSurfaceKHR CreateXlibSurfaceKHR; +#endif PFN_vkDbgCreateMsgCallback DbgCreateMsgCallback; PFN_vkDbgDestroyMsgCallback DbgDestroyMsgCallback; } VkLayerInstanceDispatchTable;