From 08fa5eeeba7621f1a65c482fc634adef83bef23b Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Thu, 23 Jul 2015 18:49:07 -0600 Subject: loader: Add missing entrypoints CmdPushConstants, GetRenderArea, GetPDImgFormat Also fix several other missing entrypoints from dispatch table related functions. Also reorder some of these functions to better match header list order so can more easily spot missing entry points. --- loader/loader.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'loader/loader.c') diff --git a/loader/loader.c b/loader/loader.c index 9ea9a376..d10c4599 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -92,6 +92,7 @@ const VkLayerInstanceDispatchTable instance_disp = { .EnumeratePhysicalDevices = loader_EnumeratePhysicalDevices, .GetPhysicalDeviceFeatures = loader_GetPhysicalDeviceFeatures, .GetPhysicalDeviceFormatProperties = loader_GetPhysicalDeviceFormatProperties, + .GetPhysicalDeviceImageFormatProperties = loader_GetPhysicalDeviceImageFormatProperties, .GetPhysicalDeviceLimits = loader_GetPhysicalDeviceLimits, .GetPhysicalDeviceProperties = loader_GetPhysicalDeviceProperties, .GetPhysicalDeviceQueueCount = loader_GetPhysicalDeviceQueueCount, @@ -958,6 +959,7 @@ static bool loader_icd_init_entrys(struct loader_icd *icd, LOOKUP_GIPA(EnumeratePhysicalDevices, true); LOOKUP_GIPA(GetPhysicalDeviceFeatures, true); LOOKUP_GIPA(GetPhysicalDeviceFormatProperties, true); + LOOKUP_GIPA(GetPhysicalDeviceImageFormatProperties, true); LOOKUP_GIPA(GetPhysicalDeviceLimits, true); LOOKUP_GIPA(CreateDevice, true); LOOKUP_GIPA(GetPhysicalDeviceProperties, true); @@ -2632,6 +2634,25 @@ VkResult VKAPI loader_GetPhysicalDeviceFormatProperties( return res; } +VkResult VKAPI loader_GetPhysicalDeviceImageFormatProperties( + VkPhysicalDevice physicalDevice, + VkFormat format, + VkImageType type, + VkImageTiling tiling, + VkImageUsageFlags usage, + VkImageFormatProperties* pImageFormatProperties) +{ + uint32_t gpu_index; + struct loader_icd *icd = loader_get_icd(physicalDevice, &gpu_index); + VkResult res = VK_ERROR_INITIALIZATION_FAILED; + + if (icd->GetPhysicalDeviceImageFormatProperties) + res = icd->GetPhysicalDeviceImageFormatProperties(physicalDevice, format, + type, tiling, usage, pImageFormatProperties); + + return res; +} + VkResult VKAPI loader_GetPhysicalDeviceLimits( VkPhysicalDevice physicalDevice, VkPhysicalDeviceLimits* pLimits) -- cgit v1.2.3