diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-07-12 12:52:09 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-07-17 10:05:20 -0600 |
| commit | 4a593f1521130ba94933cb384f32b763616be8ee (patch) | |
| tree | 2a9cf90e2e0aeb575b923ce43573e81a28c6998b /loader | |
| parent | 328021cda91349c175b1ed24117b3f54b9726139 (diff) | |
| download | usermoji-4a593f1521130ba94933cb384f32b763616be8ee.tar.xz | |
v115: remove GetPhysicalDevicePerformance
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/gpa_helper.h | 12 | ||||
| -rw-r--r-- | loader/loader.c | 26 | ||||
| -rw-r--r-- | loader/loader.h | 9 | ||||
| -rw-r--r-- | loader/table_ops.h | 9 | ||||
| -rw-r--r-- | loader/trampoline.c | 16 |
5 files changed, 16 insertions, 56 deletions
diff --git a/loader/gpa_helper.h b/loader/gpa_helper.h index 08d3b60d..43432d0a 100644 --- a/loader/gpa_helper.h +++ b/loader/gpa_helper.h @@ -39,8 +39,6 @@ static inline void* globalGetProcAddr(const char *name) return (void*) vkEnumeratePhysicalDevices; if (!strcmp(name, "GetPhysicalDeviceProperties")) return (void*) vkGetPhysicalDeviceProperties; - if (!strcmp(name, "GetPhysicalDevicePerformance")) - return (void*) vkGetPhysicalDevicePerformance; if (!strcmp(name, "GetPhysicalDeviceQueueCount")) return (void*) vkGetPhysicalDeviceQueueCount; if (!strcmp(name, "GetPhysicalDeviceQueueProperties")) @@ -49,8 +47,8 @@ static inline void* globalGetProcAddr(const char *name) return (void*) vkGetPhysicalDeviceMemoryProperties; if (!strcmp(name, "GetPhysicalDeviceFeatures")) return (void*) vkGetPhysicalDeviceFeatures; - if (!strcmp(name, "GetPhysicalDeviceFormatInfo")) - return (void*) vkGetPhysicalDeviceFormatInfo; + if (!strcmp(name, "GetPhysicalDeviceFormatProperties")) + return (void*) vkGetPhysicalDeviceFormatProperties; if (!strcmp(name, "GetPhysicalDeviceLimits")) return (void*) vkGetPhysicalDeviceLimits; if (!strcmp(name, "GetInstanceProcAddr")) @@ -349,12 +347,10 @@ static inline void *loader_non_passthrough_gpa(const char *name) return (void*) vkEnumeratePhysicalDevices; if (!strcmp(name, "GetPhysicalDeviceFeatures")) return (void*) vkGetPhysicalDeviceFeatures; - if (!strcmp(name, "GetPhysicalDeviceFormatInfo")) - return (void*) vkGetPhysicalDeviceFormatInfo; + if (!strcmp(name, "GetPhysicalDeviceFormatProperties")) + return (void*) vkGetPhysicalDeviceFormatProperties; if (!strcmp(name, "GetPhysicalDeviceLimits")) return (void*) vkGetPhysicalDeviceLimits; - if (!strcmp(name, "GetPhysicalDevicePerformance")) - return (void*) vkGetPhysicalDevicePerformance; if (!strcmp(name, "GetPhysicalDeviceQueueCount")) return (void*) vkGetPhysicalDeviceQueueCount; if (!strcmp(name, "GetPhysicalDeviceQueueProperties")) diff --git a/loader/loader.c b/loader/loader.c index 07d0416c..12e2fe0f 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -89,10 +89,9 @@ const VkLayerInstanceDispatchTable instance_disp = { .DestroyInstance = loader_DestroyInstance, .EnumeratePhysicalDevices = loader_EnumeratePhysicalDevices, .GetPhysicalDeviceFeatures = loader_GetPhysicalDeviceFeatures, - .GetPhysicalDeviceFormatInfo = loader_GetPhysicalDeviceFormatInfo, + .GetPhysicalDeviceFormatProperties = loader_GetPhysicalDeviceFormatProperties, .GetPhysicalDeviceLimits = loader_GetPhysicalDeviceLimits, .GetPhysicalDeviceProperties = loader_GetPhysicalDeviceProperties, - .GetPhysicalDevicePerformance = loader_GetPhysicalDevicePerformance, .GetPhysicalDeviceQueueCount = loader_GetPhysicalDeviceQueueCount, .GetPhysicalDeviceQueueProperties = loader_GetPhysicalDeviceQueueProperties, .GetPhysicalDeviceMemoryProperties = loader_GetPhysicalDeviceMemoryProperties, @@ -1079,12 +1078,11 @@ static void loader_icd_init_entrys(struct loader_icd *icd, LOOKUP(DestroyInstance); LOOKUP(EnumeratePhysicalDevices); LOOKUP(GetPhysicalDeviceFeatures); - LOOKUP(GetPhysicalDeviceFormatInfo); + LOOKUP(GetPhysicalDeviceFormatProperties); LOOKUP(GetPhysicalDeviceLimits); LOOKUP(CreateDevice); LOOKUP(GetPhysicalDeviceProperties); LOOKUP(GetPhysicalDeviceMemoryProperties); - LOOKUP(GetPhysicalDevicePerformance); LOOKUP(GetPhysicalDeviceQueueCount); LOOKUP(GetPhysicalDeviceQueueProperties); LOOKUP(GetPhysicalDeviceExtensionProperties); @@ -2633,20 +2631,6 @@ VkResult loader_GetPhysicalDeviceProperties( return res; } -VkResult loader_GetPhysicalDevicePerformance( - VkPhysicalDevice gpu, - VkPhysicalDevicePerformance* pPerformance) -{ - uint32_t gpu_index; - struct loader_icd *icd = loader_get_icd(gpu, &gpu_index); - VkResult res = VK_ERROR_INITIALIZATION_FAILED; - - if (icd->GetPhysicalDevicePerformance) - res = icd->GetPhysicalDevicePerformance(gpu, pPerformance); - - return res; -} - VkResult loader_GetPhysicalDeviceQueueCount( VkPhysicalDevice gpu, uint32_t* pCount) @@ -2704,7 +2688,7 @@ VkResult loader_GetPhysicalDeviceFeatures( return res; } -VkResult loader_GetPhysicalDeviceFormatInfo( +VkResult loader_GetPhysicalDeviceFormatProperties( VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatInfo) @@ -2713,8 +2697,8 @@ VkResult loader_GetPhysicalDeviceFormatInfo( struct loader_icd *icd = loader_get_icd(physicalDevice, &gpu_index); VkResult res = VK_ERROR_INITIALIZATION_FAILED; - if (icd->GetPhysicalDeviceFormatInfo) - res = icd->GetPhysicalDeviceFormatInfo(physicalDevice, format, pFormatInfo); + if (icd->GetPhysicalDeviceFormatProperties) + res = icd->GetPhysicalDeviceFormatProperties(physicalDevice, format, pFormatInfo); return res; } diff --git a/loader/loader.h b/loader/loader.h index d5395d6e..1714106f 100644 --- a/loader/loader.h +++ b/loader/loader.h @@ -144,11 +144,10 @@ struct loader_icd { PFN_vkDestroyInstance DestroyInstance; PFN_vkEnumeratePhysicalDevices EnumeratePhysicalDevices; PFN_vkGetPhysicalDeviceFeatures GetPhysicalDeviceFeatures; - PFN_vkGetPhysicalDeviceFormatInfo GetPhysicalDeviceFormatInfo; + PFN_vkGetPhysicalDeviceFormatProperties GetPhysicalDeviceFormatProperties; PFN_vkGetPhysicalDeviceLimits GetPhysicalDeviceLimits; PFN_vkCreateDevice CreateDevice; PFN_vkGetPhysicalDeviceProperties GetPhysicalDeviceProperties; - PFN_vkGetPhysicalDevicePerformance GetPhysicalDevicePerformance; PFN_vkGetPhysicalDeviceQueueCount GetPhysicalDeviceQueueCount; PFN_vkGetPhysicalDeviceQueueProperties GetPhysicalDeviceQueueProperties; PFN_vkGetPhysicalDeviceMemoryProperties GetPhysicalDeviceMemoryProperties; @@ -362,7 +361,7 @@ VkResult loader_GetPhysicalDeviceFeatures( VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures); -VkResult loader_GetPhysicalDeviceFormatInfo( +VkResult loader_GetPhysicalDeviceFormatProperties( VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatInfo); @@ -385,10 +384,6 @@ VkResult loader_GetPhysicalDeviceProperties ( VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties); -VkResult loader_GetPhysicalDevicePerformance ( - VkPhysicalDevice physicalDevice, - VkPhysicalDevicePerformance* pPerformance); - VkResult loader_GetPhysicalDeviceExtensionProperties (VkPhysicalDevice physicalDevice, const char *pLayerName, uint32_t *pCount, VkExtensionProperties* pProperties); diff --git a/loader/table_ops.h b/loader/table_ops.h index 9bcd1296..bbb83e07 100644 --- a/loader/table_ops.h +++ b/loader/table_ops.h @@ -467,10 +467,9 @@ static inline void loader_init_instance_core_dispatch_table(VkLayerInstanceDispa table->DestroyInstance = (PFN_vkDestroyInstance) gpa(inst, "vkDestroyInstance"); table->EnumeratePhysicalDevices = (PFN_vkEnumeratePhysicalDevices) gpa(inst, "vkEnumeratePhysicalDevices"); table->GetPhysicalDeviceFeatures = (PFN_vkGetPhysicalDeviceFeatures) gpa(inst, "vkGetPhysicalDeviceFeatures"); - table->GetPhysicalDeviceFormatInfo = (PFN_vkGetPhysicalDeviceFormatInfo) gpa(inst, "vkGetPhysicalDeviceFormatInfo"); + table->GetPhysicalDeviceFormatProperties = (PFN_vkGetPhysicalDeviceFormatProperties) gpa(inst, "vkGetPhysicalDeviceFormatProperties"); table->GetPhysicalDeviceLimits = (PFN_vkGetPhysicalDeviceLimits) gpa(inst, "vkGetPhysicalDeviceLimits"); table->GetPhysicalDeviceProperties = (PFN_vkGetPhysicalDeviceProperties) gpa(inst, "vkGetPhysicalDeviceProperties"); - table->GetPhysicalDevicePerformance = (PFN_vkGetPhysicalDevicePerformance) gpa(inst, "vkGetPhysicalDevicePerformance"); table->GetPhysicalDeviceQueueCount = (PFN_vkGetPhysicalDeviceQueueCount) gpa(inst, "vkGetPhysicalDeviceQueueCount"); table->GetPhysicalDeviceQueueProperties = (PFN_vkGetPhysicalDeviceQueueProperties) gpa(inst, "vkGetPhysicalDeviceQueueProperties"); table->GetPhysicalDeviceMemoryProperties = (PFN_vkGetPhysicalDeviceMemoryProperties) gpa(inst, "vkGetPhysicalDeviceMemoryProperties"); @@ -504,16 +503,14 @@ static inline void *loader_lookup_instance_dispatch_table( return (void *) table->EnumeratePhysicalDevices; if (!strcmp(name, "GetPhysicalDeviceFeatures")) return (void *) table->GetPhysicalDeviceFeatures; - if (!strcmp(name, "GetPhysicalDeviceFormatInfo")) - return (void *) table->GetPhysicalDeviceFormatInfo; + if (!strcmp(name, "GetPhysicalDeviceFormatProperties")) + return (void *) table->GetPhysicalDeviceFormatProperties; if (!strcmp(name, "GetPhysicalDeviceLimits")) return (void *) table->GetPhysicalDeviceLimits; if (!strcmp(name, "GetPhysicalDeviceSparseImageFormatProperties")) return (void *) table->GetPhysicalDeviceSparseImageFormatProperties; if (!strcmp(name, "GetPhysicalDeviceProperties")) return (void *) table->GetPhysicalDeviceProperties; - if (!strcmp(name, "GetPhysicalDevicePerformance")) - return (void *) table->GetPhysicalDevicePerformance; if (!strcmp(name, "GetPhysicalDeviceQueueCount")) return (void *) table->GetPhysicalDeviceQueueCount; if (!strcmp(name, "GetPhysicalDeviceQueueProperties")) diff --git a/loader/trampoline.c b/loader/trampoline.c index 183062c4..358ab23d 100644 --- a/loader/trampoline.c +++ b/loader/trampoline.c @@ -182,18 +182,6 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceProperties( return res; } -LOADER_EXPORT VkResult VKAPI vkGetPhysicalDevicePerformance( - VkPhysicalDevice gpu, - VkPhysicalDevicePerformance* pPerformance) -{ - const VkLayerInstanceDispatchTable *disp; - VkResult res; - - disp = loader_get_instance_dispatch(gpu); - res = disp->GetPhysicalDevicePerformance(gpu, pPerformance); - return res; -} - LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceQueueCount( VkPhysicalDevice gpu, uint32_t* pCount) @@ -243,7 +231,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceFeatures( return res; } -LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceFormatInfo( +LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceFormatProperties( VkPhysicalDevice gpu, VkFormat format, VkFormatProperties *pFormatInfo) @@ -252,7 +240,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceFormatInfo( VkResult res; disp = loader_get_instance_dispatch(gpu); - res = disp->GetPhysicalDeviceFormatInfo(gpu, format, pFormatInfo); + res = disp->GetPhysicalDeviceFormatProperties(gpu, format, pFormatInfo); return res; } |
