diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2015-04-16 11:17:12 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobin@lunarg.com> | 2015-04-16 12:39:55 -0600 |
| commit | 621cdc9bdbc3cf2dcb1a8b8713e0ad20ff42aa7e (patch) | |
| tree | 0783d301087c7618e4132df97cef32d7e0e03c55 /layers/multi.cpp | |
| parent | 7537db97c30e73648d2d8270451b4d0b06b13693 (diff) | |
| download | usermoji-621cdc9bdbc3cf2dcb1a8b8713e0ad20ff42aa7e.tar.xz | |
layers: Removing old GetExtensionSupport API call
Diffstat (limited to 'layers/multi.cpp')
| -rw-r--r-- | layers/multi.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/layers/multi.cpp b/layers/multi.cpp index c5906203..785cfc72 100644 --- a/layers/multi.cpp +++ b/layers/multi.cpp @@ -111,21 +111,6 @@ VK_LAYER_EXPORT VkResult VKAPI multi1EnumerateLayers(VkPhysicalGpu gpu, size_t m return result; } -VK_LAYER_EXPORT VkResult VKAPI multi1GetExtensionSupport(VkPhysicalGpu gpu, const char* pExtName) -{ - VkResult result; - - if (!tableMap1.empty() && (tableMap1.find(gpu) != tableMap1.end())) - { - VkLayerDispatchTable* pTable = tableMap1[gpu]; - result = pTable->GetExtensionSupport(gpu, pExtName); - } else - { - result = VK_ERROR_INVALID_EXTENSION; - } - return result; -} - VK_LAYER_EXPORT void * VKAPI multi1GetProcAddr(VkPhysicalGpu gpu, const char* pName) { VkBaseLayerObject* gpuw = (VkBaseLayerObject *) gpu; @@ -143,8 +128,6 @@ VK_LAYER_EXPORT void * VKAPI multi1GetProcAddr(VkPhysicalGpu gpu, const char* pN return (void *) multi1CreateGraphicsPipeline; else if (!strncmp("vkStorePipeline", pName, sizeof ("vkStorePipeline"))) return (void *) multi1StorePipeline; - else if (!strncmp("vkGetExtensionSupport", pName, sizeof ("vkGetExtensionSupport"))) - return (void *) multi1GetExtensionSupport; else { if (gpuw->pGPA == NULL) return NULL; @@ -226,21 +209,6 @@ VK_LAYER_EXPORT VkResult VKAPI multi2EnumerateLayers(VkPhysicalGpu gpu, size_t m return result; } -VK_LAYER_EXPORT VkResult VKAPI multi2GetExtensionSupport(VkPhysicalGpu gpu, const char* pExtName) -{ - VkResult result; - - if (!tableMap2.empty() && (tableMap2.find(gpu) != tableMap2.end())) - { - VkLayerDispatchTable* pTable = tableMap2[gpu]; - result = pTable->GetExtensionSupport(gpu, pExtName); - } else - { - result = VK_ERROR_INVALID_EXTENSION; - } - return result; -} - VK_LAYER_EXPORT void * VKAPI multi2GetProcAddr(VkPhysicalGpu gpu, const char* pName) { VkBaseLayerObject* gpuw = (VkBaseLayerObject *) gpu; @@ -258,8 +226,6 @@ VK_LAYER_EXPORT void * VKAPI multi2GetProcAddr(VkPhysicalGpu gpu, const char* pN return (void *) multi2CreateCommandBuffer; else if (!strncmp("vkBeginCommandBuffer", pName, sizeof ("vkBeginCommandBuffer"))) return (void *) multi2BeginCommandBuffer; - else if (!strncmp("vkGetExtensionSupport", pName, sizeof ("vkGetExtensionSupport"))) - return (void *) multi2GetExtensionSupport; else { if (gpuw->pGPA == NULL) return NULL; @@ -337,32 +303,6 @@ VK_LAYER_EXPORT VkResult VKAPI vkGetGlobalExtensionInfo( return VK_SUCCESS; } -VK_LAYER_EXPORT VkResult VKAPI vkGetExtensionSupport(VkPhysicalGpu gpu, const char* pExtName) -{ - VkResult result; - - /* This entrypoint is NOT going to init it's own dispatch table since loader calls here early */ - if (!strncmp(pExtName, "multi1", strlen("multi1"))) - { - result = VK_SUCCESS; - } else if (!strncmp(pExtName, "multi2", strlen("multi2"))) - { - result = VK_SUCCESS; - } else if (!tableMap1.empty() && (tableMap1.find(gpu) != tableMap1.end())) - { - VkLayerDispatchTable* pTable = tableMap1[gpu]; - result = pTable->GetExtensionSupport(gpu, pExtName); - } else if (!tableMap2.empty() && (tableMap2.find(gpu) != tableMap2.end())) - { - VkLayerDispatchTable* pTable = tableMap2[gpu]; - result = pTable->GetExtensionSupport(gpu, pExtName); - } else - { - result = VK_ERROR_INVALID_EXTENSION; - } - return result; -} - VK_LAYER_EXPORT void * VKAPI vkGetProcAddr(VkPhysicalGpu gpu, const char* pName) { // to find each layers GPA routine Loader will search via "<layerName>GetProcAddr" |
