aboutsummaryrefslogtreecommitdiff
path: root/loader/loader.c
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-07-23 18:49:07 -0600
committerJon Ashburn <jon@lunarg.com>2015-07-24 10:01:01 -0600
commit08fa5eeeba7621f1a65c482fc634adef83bef23b (patch)
tree2e997d14c73ade83d498eb7214d1759de21342e0 /loader/loader.c
parent5625fc007a3c76afaa4153bb8b83205b340e1b87 (diff)
downloadusermoji-08fa5eeeba7621f1a65c482fc634adef83bef23b.tar.xz
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.
Diffstat (limited to 'loader/loader.c')
-rw-r--r--loader/loader.c21
1 files changed, 21 insertions, 0 deletions
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)