|
@@ -172,6 +172,10 @@ VKAPI_ATTR bool VKAPI_CALL loader_icd_init_entries(struct loader_icd_term *icd_t
|
|
// ---- VK_KHR_external_fence_capabilities extension commands
|
|
// ---- VK_KHR_external_fence_capabilities extension commands
|
|
LOOKUP_GIPA(GetPhysicalDeviceExternalFencePropertiesKHR, false);
|
|
LOOKUP_GIPA(GetPhysicalDeviceExternalFencePropertiesKHR, false);
|
|
|
|
|
|
|
|
+ // ---- VK_KHR_performance_query extension commands
|
|
|
|
+ LOOKUP_GIPA(EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR, false);
|
|
|
|
+ LOOKUP_GIPA(GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR, false);
|
|
|
|
+
|
|
// ---- VK_KHR_get_surface_capabilities2 extension commands
|
|
// ---- VK_KHR_get_surface_capabilities2 extension commands
|
|
LOOKUP_GIPA(GetPhysicalDeviceSurfaceCapabilities2KHR, false);
|
|
LOOKUP_GIPA(GetPhysicalDeviceSurfaceCapabilities2KHR, false);
|
|
LOOKUP_GIPA(GetPhysicalDeviceSurfaceFormats2KHR, false);
|
|
LOOKUP_GIPA(GetPhysicalDeviceSurfaceFormats2KHR, false);
|
|
@@ -234,6 +238,12 @@ VKAPI_ATTR bool VKAPI_CALL loader_icd_init_entries(struct loader_icd_term *icd_t
|
|
// ---- VK_EXT_debug_utils extension commands
|
|
// ---- VK_EXT_debug_utils extension commands
|
|
LOOKUP_GIPA(SetDebugUtilsObjectNameEXT, false);
|
|
LOOKUP_GIPA(SetDebugUtilsObjectNameEXT, false);
|
|
LOOKUP_GIPA(SetDebugUtilsObjectTagEXT, false);
|
|
LOOKUP_GIPA(SetDebugUtilsObjectTagEXT, false);
|
|
|
|
+ LOOKUP_GIPA(QueueBeginDebugUtilsLabelEXT, false);
|
|
|
|
+ LOOKUP_GIPA(QueueEndDebugUtilsLabelEXT, false);
|
|
|
|
+ LOOKUP_GIPA(QueueInsertDebugUtilsLabelEXT, false);
|
|
|
|
+ LOOKUP_GIPA(CmdBeginDebugUtilsLabelEXT, false);
|
|
|
|
+ LOOKUP_GIPA(CmdEndDebugUtilsLabelEXT, false);
|
|
|
|
+ LOOKUP_GIPA(CmdInsertDebugUtilsLabelEXT, false);
|
|
LOOKUP_GIPA(CreateDebugUtilsMessengerEXT, false);
|
|
LOOKUP_GIPA(CreateDebugUtilsMessengerEXT, false);
|
|
LOOKUP_GIPA(DestroyDebugUtilsMessengerEXT, false);
|
|
LOOKUP_GIPA(DestroyDebugUtilsMessengerEXT, false);
|
|
LOOKUP_GIPA(SubmitDebugUtilsMessageEXT, false);
|
|
LOOKUP_GIPA(SubmitDebugUtilsMessageEXT, false);
|
|
@@ -254,6 +264,9 @@ VKAPI_ATTR bool VKAPI_CALL loader_icd_init_entries(struct loader_icd_term *icd_t
|
|
LOOKUP_GIPA(CreateMetalSurfaceEXT, false);
|
|
LOOKUP_GIPA(CreateMetalSurfaceEXT, false);
|
|
#endif // VK_USE_PLATFORM_METAL_EXT
|
|
#endif // VK_USE_PLATFORM_METAL_EXT
|
|
|
|
|
|
|
|
+ // ---- VK_EXT_tooling_info extension commands
|
|
|
|
+ LOOKUP_GIPA(GetPhysicalDeviceToolPropertiesEXT, false);
|
|
|
|
+
|
|
// ---- VK_NV_cooperative_matrix extension commands
|
|
// ---- VK_NV_cooperative_matrix extension commands
|
|
LOOKUP_GIPA(GetPhysicalDeviceCooperativeMatrixPropertiesNV, false);
|
|
LOOKUP_GIPA(GetPhysicalDeviceCooperativeMatrixPropertiesNV, false);
|
|
|
|
|
|
@@ -422,6 +435,21 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_dispatch_table(struct loader_dev_d
|
|
table->DestroyDescriptorUpdateTemplate = (PFN_vkDestroyDescriptorUpdateTemplate)gpa(dev, "vkDestroyDescriptorUpdateTemplate");
|
|
table->DestroyDescriptorUpdateTemplate = (PFN_vkDestroyDescriptorUpdateTemplate)gpa(dev, "vkDestroyDescriptorUpdateTemplate");
|
|
table->UpdateDescriptorSetWithTemplate = (PFN_vkUpdateDescriptorSetWithTemplate)gpa(dev, "vkUpdateDescriptorSetWithTemplate");
|
|
table->UpdateDescriptorSetWithTemplate = (PFN_vkUpdateDescriptorSetWithTemplate)gpa(dev, "vkUpdateDescriptorSetWithTemplate");
|
|
table->GetDescriptorSetLayoutSupport = (PFN_vkGetDescriptorSetLayoutSupport)gpa(dev, "vkGetDescriptorSetLayoutSupport");
|
|
table->GetDescriptorSetLayoutSupport = (PFN_vkGetDescriptorSetLayoutSupport)gpa(dev, "vkGetDescriptorSetLayoutSupport");
|
|
|
|
+
|
|
|
|
+ // ---- Core 1_2 commands
|
|
|
|
+ table->CmdDrawIndirectCount = (PFN_vkCmdDrawIndirectCount)gpa(dev, "vkCmdDrawIndirectCount");
|
|
|
|
+ table->CmdDrawIndexedIndirectCount = (PFN_vkCmdDrawIndexedIndirectCount)gpa(dev, "vkCmdDrawIndexedIndirectCount");
|
|
|
|
+ table->CreateRenderPass2 = (PFN_vkCreateRenderPass2)gpa(dev, "vkCreateRenderPass2");
|
|
|
|
+ table->CmdBeginRenderPass2 = (PFN_vkCmdBeginRenderPass2)gpa(dev, "vkCmdBeginRenderPass2");
|
|
|
|
+ table->CmdNextSubpass2 = (PFN_vkCmdNextSubpass2)gpa(dev, "vkCmdNextSubpass2");
|
|
|
|
+ table->CmdEndRenderPass2 = (PFN_vkCmdEndRenderPass2)gpa(dev, "vkCmdEndRenderPass2");
|
|
|
|
+ table->ResetQueryPool = (PFN_vkResetQueryPool)gpa(dev, "vkResetQueryPool");
|
|
|
|
+ table->GetSemaphoreCounterValue = (PFN_vkGetSemaphoreCounterValue)gpa(dev, "vkGetSemaphoreCounterValue");
|
|
|
|
+ table->WaitSemaphores = (PFN_vkWaitSemaphores)gpa(dev, "vkWaitSemaphores");
|
|
|
|
+ table->SignalSemaphore = (PFN_vkSignalSemaphore)gpa(dev, "vkSignalSemaphore");
|
|
|
|
+ table->GetBufferDeviceAddress = (PFN_vkGetBufferDeviceAddress)gpa(dev, "vkGetBufferDeviceAddress");
|
|
|
|
+ table->GetBufferOpaqueCaptureAddress = (PFN_vkGetBufferOpaqueCaptureAddress)gpa(dev, "vkGetBufferOpaqueCaptureAddress");
|
|
|
|
+ table->GetDeviceMemoryOpaqueCaptureAddress = (PFN_vkGetDeviceMemoryOpaqueCaptureAddress)gpa(dev, "vkGetDeviceMemoryOpaqueCaptureAddress");
|
|
}
|
|
}
|
|
|
|
|
|
// Init Device function pointer dispatch table with extension commands
|
|
// Init Device function pointer dispatch table with extension commands
|
|
@@ -507,6 +535,10 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_extension_dispatch_table(struct lo
|
|
table->ImportFenceFdKHR = (PFN_vkImportFenceFdKHR)gdpa(dev, "vkImportFenceFdKHR");
|
|
table->ImportFenceFdKHR = (PFN_vkImportFenceFdKHR)gdpa(dev, "vkImportFenceFdKHR");
|
|
table->GetFenceFdKHR = (PFN_vkGetFenceFdKHR)gdpa(dev, "vkGetFenceFdKHR");
|
|
table->GetFenceFdKHR = (PFN_vkGetFenceFdKHR)gdpa(dev, "vkGetFenceFdKHR");
|
|
|
|
|
|
|
|
+ // ---- VK_KHR_performance_query extension commands
|
|
|
|
+ table->AcquireProfilingLockKHR = (PFN_vkAcquireProfilingLockKHR)gdpa(dev, "vkAcquireProfilingLockKHR");
|
|
|
|
+ table->ReleaseProfilingLockKHR = (PFN_vkReleaseProfilingLockKHR)gdpa(dev, "vkReleaseProfilingLockKHR");
|
|
|
|
+
|
|
// ---- VK_KHR_get_memory_requirements2 extension commands
|
|
// ---- VK_KHR_get_memory_requirements2 extension commands
|
|
table->GetImageMemoryRequirements2KHR = (PFN_vkGetImageMemoryRequirements2KHR)gdpa(dev, "vkGetImageMemoryRequirements2KHR");
|
|
table->GetImageMemoryRequirements2KHR = (PFN_vkGetImageMemoryRequirements2KHR)gdpa(dev, "vkGetImageMemoryRequirements2KHR");
|
|
table->GetBufferMemoryRequirements2KHR = (PFN_vkGetBufferMemoryRequirements2KHR)gdpa(dev, "vkGetBufferMemoryRequirements2KHR");
|
|
table->GetBufferMemoryRequirements2KHR = (PFN_vkGetBufferMemoryRequirements2KHR)gdpa(dev, "vkGetBufferMemoryRequirements2KHR");
|
|
@@ -532,6 +564,11 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_extension_dispatch_table(struct lo
|
|
table->WaitSemaphoresKHR = (PFN_vkWaitSemaphoresKHR)gdpa(dev, "vkWaitSemaphoresKHR");
|
|
table->WaitSemaphoresKHR = (PFN_vkWaitSemaphoresKHR)gdpa(dev, "vkWaitSemaphoresKHR");
|
|
table->SignalSemaphoreKHR = (PFN_vkSignalSemaphoreKHR)gdpa(dev, "vkSignalSemaphoreKHR");
|
|
table->SignalSemaphoreKHR = (PFN_vkSignalSemaphoreKHR)gdpa(dev, "vkSignalSemaphoreKHR");
|
|
|
|
|
|
|
|
+ // ---- VK_KHR_buffer_device_address extension commands
|
|
|
|
+ table->GetBufferDeviceAddressKHR = (PFN_vkGetBufferDeviceAddressKHR)gdpa(dev, "vkGetBufferDeviceAddressKHR");
|
|
|
|
+ table->GetBufferOpaqueCaptureAddressKHR = (PFN_vkGetBufferOpaqueCaptureAddressKHR)gdpa(dev, "vkGetBufferOpaqueCaptureAddressKHR");
|
|
|
|
+ table->GetDeviceMemoryOpaqueCaptureAddressKHR = (PFN_vkGetDeviceMemoryOpaqueCaptureAddressKHR)gdpa(dev, "vkGetDeviceMemoryOpaqueCaptureAddressKHR");
|
|
|
|
+
|
|
// ---- VK_KHR_pipeline_executable_properties extension commands
|
|
// ---- VK_KHR_pipeline_executable_properties extension commands
|
|
table->GetPipelineExecutablePropertiesKHR = (PFN_vkGetPipelineExecutablePropertiesKHR)gdpa(dev, "vkGetPipelineExecutablePropertiesKHR");
|
|
table->GetPipelineExecutablePropertiesKHR = (PFN_vkGetPipelineExecutablePropertiesKHR)gdpa(dev, "vkGetPipelineExecutablePropertiesKHR");
|
|
table->GetPipelineExecutableStatisticsKHR = (PFN_vkGetPipelineExecutableStatisticsKHR)gdpa(dev, "vkGetPipelineExecutableStatisticsKHR");
|
|
table->GetPipelineExecutableStatisticsKHR = (PFN_vkGetPipelineExecutableStatisticsKHR)gdpa(dev, "vkGetPipelineExecutableStatisticsKHR");
|
|
@@ -818,6 +855,10 @@ VKAPI_ATTR void VKAPI_CALL loader_init_instance_extension_dispatch_table(VkLayer
|
|
// ---- VK_KHR_external_fence_capabilities extension commands
|
|
// ---- VK_KHR_external_fence_capabilities extension commands
|
|
table->GetPhysicalDeviceExternalFencePropertiesKHR = (PFN_vkGetPhysicalDeviceExternalFencePropertiesKHR)gpa(inst, "vkGetPhysicalDeviceExternalFencePropertiesKHR");
|
|
table->GetPhysicalDeviceExternalFencePropertiesKHR = (PFN_vkGetPhysicalDeviceExternalFencePropertiesKHR)gpa(inst, "vkGetPhysicalDeviceExternalFencePropertiesKHR");
|
|
|
|
|
|
|
|
+ // ---- VK_KHR_performance_query extension commands
|
|
|
|
+ table->EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR = (PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR)gpa(inst, "vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR");
|
|
|
|
+ table->GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR = (PFN_vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR)gpa(inst, "vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR");
|
|
|
|
+
|
|
// ---- VK_KHR_get_surface_capabilities2 extension commands
|
|
// ---- VK_KHR_get_surface_capabilities2 extension commands
|
|
table->GetPhysicalDeviceSurfaceCapabilities2KHR = (PFN_vkGetPhysicalDeviceSurfaceCapabilities2KHR)gpa(inst, "vkGetPhysicalDeviceSurfaceCapabilities2KHR");
|
|
table->GetPhysicalDeviceSurfaceCapabilities2KHR = (PFN_vkGetPhysicalDeviceSurfaceCapabilities2KHR)gpa(inst, "vkGetPhysicalDeviceSurfaceCapabilities2KHR");
|
|
table->GetPhysicalDeviceSurfaceFormats2KHR = (PFN_vkGetPhysicalDeviceSurfaceFormats2KHR)gpa(inst, "vkGetPhysicalDeviceSurfaceFormats2KHR");
|
|
table->GetPhysicalDeviceSurfaceFormats2KHR = (PFN_vkGetPhysicalDeviceSurfaceFormats2KHR)gpa(inst, "vkGetPhysicalDeviceSurfaceFormats2KHR");
|
|
@@ -894,6 +935,9 @@ VKAPI_ATTR void VKAPI_CALL loader_init_instance_extension_dispatch_table(VkLayer
|
|
table->CreateMetalSurfaceEXT = (PFN_vkCreateMetalSurfaceEXT)gpa(inst, "vkCreateMetalSurfaceEXT");
|
|
table->CreateMetalSurfaceEXT = (PFN_vkCreateMetalSurfaceEXT)gpa(inst, "vkCreateMetalSurfaceEXT");
|
|
#endif // VK_USE_PLATFORM_METAL_EXT
|
|
#endif // VK_USE_PLATFORM_METAL_EXT
|
|
|
|
|
|
|
|
+ // ---- VK_EXT_tooling_info extension commands
|
|
|
|
+ table->GetPhysicalDeviceToolPropertiesEXT = (PFN_vkGetPhysicalDeviceToolPropertiesEXT)gpa(inst, "vkGetPhysicalDeviceToolPropertiesEXT");
|
|
|
|
+
|
|
// ---- VK_NV_cooperative_matrix extension commands
|
|
// ---- VK_NV_cooperative_matrix extension commands
|
|
table->GetPhysicalDeviceCooperativeMatrixPropertiesNV = (PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV)gpa(inst, "vkGetPhysicalDeviceCooperativeMatrixPropertiesNV");
|
|
table->GetPhysicalDeviceCooperativeMatrixPropertiesNV = (PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV)gpa(inst, "vkGetPhysicalDeviceCooperativeMatrixPropertiesNV");
|
|
|
|
|
|
@@ -1056,6 +1100,21 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
|
|
if (!strcmp(name, "UpdateDescriptorSetWithTemplate")) return (void *)table->UpdateDescriptorSetWithTemplate;
|
|
if (!strcmp(name, "UpdateDescriptorSetWithTemplate")) return (void *)table->UpdateDescriptorSetWithTemplate;
|
|
if (!strcmp(name, "GetDescriptorSetLayoutSupport")) return (void *)table->GetDescriptorSetLayoutSupport;
|
|
if (!strcmp(name, "GetDescriptorSetLayoutSupport")) return (void *)table->GetDescriptorSetLayoutSupport;
|
|
|
|
|
|
|
|
+ // ---- Core 1_2 commands
|
|
|
|
+ if (!strcmp(name, "CmdDrawIndirectCount")) return (void *)table->CmdDrawIndirectCount;
|
|
|
|
+ if (!strcmp(name, "CmdDrawIndexedIndirectCount")) return (void *)table->CmdDrawIndexedIndirectCount;
|
|
|
|
+ if (!strcmp(name, "CreateRenderPass2")) return (void *)table->CreateRenderPass2;
|
|
|
|
+ if (!strcmp(name, "CmdBeginRenderPass2")) return (void *)table->CmdBeginRenderPass2;
|
|
|
|
+ if (!strcmp(name, "CmdNextSubpass2")) return (void *)table->CmdNextSubpass2;
|
|
|
|
+ if (!strcmp(name, "CmdEndRenderPass2")) return (void *)table->CmdEndRenderPass2;
|
|
|
|
+ if (!strcmp(name, "ResetQueryPool")) return (void *)table->ResetQueryPool;
|
|
|
|
+ if (!strcmp(name, "GetSemaphoreCounterValue")) return (void *)table->GetSemaphoreCounterValue;
|
|
|
|
+ if (!strcmp(name, "WaitSemaphores")) return (void *)table->WaitSemaphores;
|
|
|
|
+ if (!strcmp(name, "SignalSemaphore")) return (void *)table->SignalSemaphore;
|
|
|
|
+ if (!strcmp(name, "GetBufferDeviceAddress")) return (void *)table->GetBufferDeviceAddress;
|
|
|
|
+ if (!strcmp(name, "GetBufferOpaqueCaptureAddress")) return (void *)table->GetBufferOpaqueCaptureAddress;
|
|
|
|
+ if (!strcmp(name, "GetDeviceMemoryOpaqueCaptureAddress")) return (void *)table->GetDeviceMemoryOpaqueCaptureAddress;
|
|
|
|
+
|
|
// ---- VK_KHR_swapchain extension commands
|
|
// ---- VK_KHR_swapchain extension commands
|
|
if (!strcmp(name, "CreateSwapchainKHR")) return (void *)table->CreateSwapchainKHR;
|
|
if (!strcmp(name, "CreateSwapchainKHR")) return (void *)table->CreateSwapchainKHR;
|
|
if (!strcmp(name, "DestroySwapchainKHR")) return (void *)table->DestroySwapchainKHR;
|
|
if (!strcmp(name, "DestroySwapchainKHR")) return (void *)table->DestroySwapchainKHR;
|
|
@@ -1131,6 +1190,10 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
|
|
if (!strcmp(name, "ImportFenceFdKHR")) return (void *)table->ImportFenceFdKHR;
|
|
if (!strcmp(name, "ImportFenceFdKHR")) return (void *)table->ImportFenceFdKHR;
|
|
if (!strcmp(name, "GetFenceFdKHR")) return (void *)table->GetFenceFdKHR;
|
|
if (!strcmp(name, "GetFenceFdKHR")) return (void *)table->GetFenceFdKHR;
|
|
|
|
|
|
|
|
+ // ---- VK_KHR_performance_query extension commands
|
|
|
|
+ if (!strcmp(name, "AcquireProfilingLockKHR")) return (void *)table->AcquireProfilingLockKHR;
|
|
|
|
+ if (!strcmp(name, "ReleaseProfilingLockKHR")) return (void *)table->ReleaseProfilingLockKHR;
|
|
|
|
+
|
|
// ---- VK_KHR_get_memory_requirements2 extension commands
|
|
// ---- VK_KHR_get_memory_requirements2 extension commands
|
|
if (!strcmp(name, "GetImageMemoryRequirements2KHR")) return (void *)table->GetImageMemoryRequirements2KHR;
|
|
if (!strcmp(name, "GetImageMemoryRequirements2KHR")) return (void *)table->GetImageMemoryRequirements2KHR;
|
|
if (!strcmp(name, "GetBufferMemoryRequirements2KHR")) return (void *)table->GetBufferMemoryRequirements2KHR;
|
|
if (!strcmp(name, "GetBufferMemoryRequirements2KHR")) return (void *)table->GetBufferMemoryRequirements2KHR;
|
|
@@ -1156,6 +1219,11 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
|
|
if (!strcmp(name, "WaitSemaphoresKHR")) return (void *)table->WaitSemaphoresKHR;
|
|
if (!strcmp(name, "WaitSemaphoresKHR")) return (void *)table->WaitSemaphoresKHR;
|
|
if (!strcmp(name, "SignalSemaphoreKHR")) return (void *)table->SignalSemaphoreKHR;
|
|
if (!strcmp(name, "SignalSemaphoreKHR")) return (void *)table->SignalSemaphoreKHR;
|
|
|
|
|
|
|
|
+ // ---- VK_KHR_buffer_device_address extension commands
|
|
|
|
+ if (!strcmp(name, "GetBufferDeviceAddressKHR")) return (void *)table->GetBufferDeviceAddressKHR;
|
|
|
|
+ if (!strcmp(name, "GetBufferOpaqueCaptureAddressKHR")) return (void *)table->GetBufferOpaqueCaptureAddressKHR;
|
|
|
|
+ if (!strcmp(name, "GetDeviceMemoryOpaqueCaptureAddressKHR")) return (void *)table->GetDeviceMemoryOpaqueCaptureAddressKHR;
|
|
|
|
+
|
|
// ---- VK_KHR_pipeline_executable_properties extension commands
|
|
// ---- VK_KHR_pipeline_executable_properties extension commands
|
|
if (!strcmp(name, "GetPipelineExecutablePropertiesKHR")) return (void *)table->GetPipelineExecutablePropertiesKHR;
|
|
if (!strcmp(name, "GetPipelineExecutablePropertiesKHR")) return (void *)table->GetPipelineExecutablePropertiesKHR;
|
|
if (!strcmp(name, "GetPipelineExecutableStatisticsKHR")) return (void *)table->GetPipelineExecutableStatisticsKHR;
|
|
if (!strcmp(name, "GetPipelineExecutableStatisticsKHR")) return (void *)table->GetPipelineExecutableStatisticsKHR;
|
|
@@ -1446,6 +1514,10 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_instance_dispatch_table(const VkLayerI
|
|
// ---- VK_KHR_external_fence_capabilities extension commands
|
|
// ---- VK_KHR_external_fence_capabilities extension commands
|
|
if (!strcmp(name, "GetPhysicalDeviceExternalFencePropertiesKHR")) return (void *)table->GetPhysicalDeviceExternalFencePropertiesKHR;
|
|
if (!strcmp(name, "GetPhysicalDeviceExternalFencePropertiesKHR")) return (void *)table->GetPhysicalDeviceExternalFencePropertiesKHR;
|
|
|
|
|
|
|
|
+ // ---- VK_KHR_performance_query extension commands
|
|
|
|
+ if (!strcmp(name, "EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR")) return (void *)table->EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR;
|
|
|
|
+ if (!strcmp(name, "GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR")) return (void *)table->GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR;
|
|
|
|
+
|
|
// ---- VK_KHR_get_surface_capabilities2 extension commands
|
|
// ---- VK_KHR_get_surface_capabilities2 extension commands
|
|
if (!strcmp(name, "GetPhysicalDeviceSurfaceCapabilities2KHR")) return (void *)table->GetPhysicalDeviceSurfaceCapabilities2KHR;
|
|
if (!strcmp(name, "GetPhysicalDeviceSurfaceCapabilities2KHR")) return (void *)table->GetPhysicalDeviceSurfaceCapabilities2KHR;
|
|
if (!strcmp(name, "GetPhysicalDeviceSurfaceFormats2KHR")) return (void *)table->GetPhysicalDeviceSurfaceFormats2KHR;
|
|
if (!strcmp(name, "GetPhysicalDeviceSurfaceFormats2KHR")) return (void *)table->GetPhysicalDeviceSurfaceFormats2KHR;
|
|
@@ -1522,6 +1594,9 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_instance_dispatch_table(const VkLayerI
|
|
if (!strcmp(name, "CreateMetalSurfaceEXT")) return (void *)table->CreateMetalSurfaceEXT;
|
|
if (!strcmp(name, "CreateMetalSurfaceEXT")) return (void *)table->CreateMetalSurfaceEXT;
|
|
#endif // VK_USE_PLATFORM_METAL_EXT
|
|
#endif // VK_USE_PLATFORM_METAL_EXT
|
|
|
|
|
|
|
|
+ // ---- VK_EXT_tooling_info extension commands
|
|
|
|
+ if (!strcmp(name, "GetPhysicalDeviceToolPropertiesEXT")) return (void *)table->GetPhysicalDeviceToolPropertiesEXT;
|
|
|
|
+
|
|
// ---- VK_NV_cooperative_matrix extension commands
|
|
// ---- VK_NV_cooperative_matrix extension commands
|
|
if (!strcmp(name, "GetPhysicalDeviceCooperativeMatrixPropertiesNV")) return (void *)table->GetPhysicalDeviceCooperativeMatrixPropertiesNV;
|
|
if (!strcmp(name, "GetPhysicalDeviceCooperativeMatrixPropertiesNV")) return (void *)table->GetPhysicalDeviceCooperativeMatrixPropertiesNV;
|
|
|
|
|
|
@@ -1725,7 +1800,7 @@ VKAPI_ATTR void VKAPI_CALL UpdateDescriptorSetWithTemplateKHR(
|
|
|
|
|
|
VKAPI_ATTR VkResult VKAPI_CALL CreateRenderPass2KHR(
|
|
VKAPI_ATTR VkResult VKAPI_CALL CreateRenderPass2KHR(
|
|
VkDevice device,
|
|
VkDevice device,
|
|
- const VkRenderPassCreateInfo2KHR* pCreateInfo,
|
|
|
|
|
|
+ const VkRenderPassCreateInfo2* pCreateInfo,
|
|
const VkAllocationCallbacks* pAllocator,
|
|
const VkAllocationCallbacks* pAllocator,
|
|
VkRenderPass* pRenderPass) {
|
|
VkRenderPass* pRenderPass) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
@@ -1735,22 +1810,22 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateRenderPass2KHR(
|
|
VKAPI_ATTR void VKAPI_CALL CmdBeginRenderPass2KHR(
|
|
VKAPI_ATTR void VKAPI_CALL CmdBeginRenderPass2KHR(
|
|
VkCommandBuffer commandBuffer,
|
|
VkCommandBuffer commandBuffer,
|
|
const VkRenderPassBeginInfo* pRenderPassBegin,
|
|
const VkRenderPassBeginInfo* pRenderPassBegin,
|
|
- const VkSubpassBeginInfoKHR* pSubpassBeginInfo) {
|
|
|
|
|
|
+ const VkSubpassBeginInfo* pSubpassBeginInfo) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
disp->CmdBeginRenderPass2KHR(commandBuffer, pRenderPassBegin, pSubpassBeginInfo);
|
|
disp->CmdBeginRenderPass2KHR(commandBuffer, pRenderPassBegin, pSubpassBeginInfo);
|
|
}
|
|
}
|
|
|
|
|
|
VKAPI_ATTR void VKAPI_CALL CmdNextSubpass2KHR(
|
|
VKAPI_ATTR void VKAPI_CALL CmdNextSubpass2KHR(
|
|
VkCommandBuffer commandBuffer,
|
|
VkCommandBuffer commandBuffer,
|
|
- const VkSubpassBeginInfoKHR* pSubpassBeginInfo,
|
|
|
|
- const VkSubpassEndInfoKHR* pSubpassEndInfo) {
|
|
|
|
|
|
+ const VkSubpassBeginInfo* pSubpassBeginInfo,
|
|
|
|
+ const VkSubpassEndInfo* pSubpassEndInfo) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
disp->CmdNextSubpass2KHR(commandBuffer, pSubpassBeginInfo, pSubpassEndInfo);
|
|
disp->CmdNextSubpass2KHR(commandBuffer, pSubpassBeginInfo, pSubpassEndInfo);
|
|
}
|
|
}
|
|
|
|
|
|
VKAPI_ATTR void VKAPI_CALL CmdEndRenderPass2KHR(
|
|
VKAPI_ATTR void VKAPI_CALL CmdEndRenderPass2KHR(
|
|
VkCommandBuffer commandBuffer,
|
|
VkCommandBuffer commandBuffer,
|
|
- const VkSubpassEndInfoKHR* pSubpassEndInfo) {
|
|
|
|
|
|
+ const VkSubpassEndInfo* pSubpassEndInfo) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
disp->CmdEndRenderPass2KHR(commandBuffer, pSubpassEndInfo);
|
|
disp->CmdEndRenderPass2KHR(commandBuffer, pSubpassEndInfo);
|
|
}
|
|
}
|
|
@@ -1806,6 +1881,72 @@ VKAPI_ATTR VkResult VKAPI_CALL GetFenceFdKHR(
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+// ---- VK_KHR_performance_query extension trampoline/terminators
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR VkResult VKAPI_CALL EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
|
|
|
|
+ VkPhysicalDevice physicalDevice,
|
|
|
|
+ uint32_t queueFamilyIndex,
|
|
|
|
+ uint32_t* pCounterCount,
|
|
|
|
+ VkPerformanceCounterKHR* pCounters,
|
|
|
|
+ VkPerformanceCounterDescriptionKHR* pCounterDescriptions) {
|
|
|
|
+ const VkLayerInstanceDispatchTable *disp;
|
|
|
|
+ VkPhysicalDevice unwrapped_phys_dev = loader_unwrap_physical_device(physicalDevice);
|
|
|
|
+ disp = loader_get_instance_layer_dispatch(physicalDevice);
|
|
|
|
+ return disp->EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(unwrapped_phys_dev, queueFamilyIndex, pCounterCount, pCounters, pCounterDescriptions);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR VkResult VKAPI_CALL terminator_EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
|
|
|
|
+ VkPhysicalDevice physicalDevice,
|
|
|
|
+ uint32_t queueFamilyIndex,
|
|
|
|
+ uint32_t* pCounterCount,
|
|
|
|
+ VkPerformanceCounterKHR* pCounters,
|
|
|
|
+ VkPerformanceCounterDescriptionKHR* pCounterDescriptions) {
|
|
|
|
+ struct loader_physical_device_term *phys_dev_term = (struct loader_physical_device_term *)physicalDevice;
|
|
|
|
+ struct loader_icd_term *icd_term = phys_dev_term->this_icd_term;
|
|
|
|
+ if (NULL == icd_term->dispatch.EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR) {
|
|
|
|
+ loader_log(icd_term->this_instance, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0,
|
|
|
|
+ "ICD associated with VkPhysicalDevice does not support EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR");
|
|
|
|
+ }
|
|
|
|
+ return icd_term->dispatch.EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(phys_dev_term->phys_dev, queueFamilyIndex, pCounterCount, pCounters, pCounterDescriptions);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR(
|
|
|
|
+ VkPhysicalDevice physicalDevice,
|
|
|
|
+ const VkQueryPoolPerformanceCreateInfoKHR* pPerformanceQueryCreateInfo,
|
|
|
|
+ uint32_t* pNumPasses) {
|
|
|
|
+ const VkLayerInstanceDispatchTable *disp;
|
|
|
|
+ VkPhysicalDevice unwrapped_phys_dev = loader_unwrap_physical_device(physicalDevice);
|
|
|
|
+ disp = loader_get_instance_layer_dispatch(physicalDevice);
|
|
|
|
+ disp->GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR(unwrapped_phys_dev, pPerformanceQueryCreateInfo, pNumPasses);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR void VKAPI_CALL terminator_GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR(
|
|
|
|
+ VkPhysicalDevice physicalDevice,
|
|
|
|
+ const VkQueryPoolPerformanceCreateInfoKHR* pPerformanceQueryCreateInfo,
|
|
|
|
+ uint32_t* pNumPasses) {
|
|
|
|
+ struct loader_physical_device_term *phys_dev_term = (struct loader_physical_device_term *)physicalDevice;
|
|
|
|
+ struct loader_icd_term *icd_term = phys_dev_term->this_icd_term;
|
|
|
|
+ if (NULL == icd_term->dispatch.GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR) {
|
|
|
|
+ loader_log(icd_term->this_instance, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0,
|
|
|
|
+ "ICD associated with VkPhysicalDevice does not support GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR");
|
|
|
|
+ }
|
|
|
|
+ icd_term->dispatch.GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR(phys_dev_term->phys_dev, pPerformanceQueryCreateInfo, pNumPasses);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR VkResult VKAPI_CALL AcquireProfilingLockKHR(
|
|
|
|
+ VkDevice device,
|
|
|
|
+ const VkAcquireProfilingLockInfoKHR* pInfo) {
|
|
|
|
+ const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
|
|
+ return disp->AcquireProfilingLockKHR(device, pInfo);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR void VKAPI_CALL ReleaseProfilingLockKHR(
|
|
|
|
+ VkDevice device) {
|
|
|
|
+ const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
|
|
+ disp->ReleaseProfilingLockKHR(device);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
// ---- VK_KHR_get_memory_requirements2 extension trampoline/terminators
|
|
// ---- VK_KHR_get_memory_requirements2 extension trampoline/terminators
|
|
|
|
|
|
VKAPI_ATTR void VKAPI_CALL GetImageMemoryRequirements2KHR(
|
|
VKAPI_ATTR void VKAPI_CALL GetImageMemoryRequirements2KHR(
|
|
@@ -1923,7 +2064,7 @@ VKAPI_ATTR VkResult VKAPI_CALL GetSemaphoreCounterValueKHR(
|
|
|
|
|
|
VKAPI_ATTR VkResult VKAPI_CALL WaitSemaphoresKHR(
|
|
VKAPI_ATTR VkResult VKAPI_CALL WaitSemaphoresKHR(
|
|
VkDevice device,
|
|
VkDevice device,
|
|
- const VkSemaphoreWaitInfoKHR* pWaitInfo,
|
|
|
|
|
|
+ const VkSemaphoreWaitInfo* pWaitInfo,
|
|
uint64_t timeout) {
|
|
uint64_t timeout) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
return disp->WaitSemaphoresKHR(device, pWaitInfo, timeout);
|
|
return disp->WaitSemaphoresKHR(device, pWaitInfo, timeout);
|
|
@@ -1931,12 +2072,36 @@ VKAPI_ATTR VkResult VKAPI_CALL WaitSemaphoresKHR(
|
|
|
|
|
|
VKAPI_ATTR VkResult VKAPI_CALL SignalSemaphoreKHR(
|
|
VKAPI_ATTR VkResult VKAPI_CALL SignalSemaphoreKHR(
|
|
VkDevice device,
|
|
VkDevice device,
|
|
- const VkSemaphoreSignalInfoKHR* pSignalInfo) {
|
|
|
|
|
|
+ const VkSemaphoreSignalInfo* pSignalInfo) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
return disp->SignalSemaphoreKHR(device, pSignalInfo);
|
|
return disp->SignalSemaphoreKHR(device, pSignalInfo);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+// ---- VK_KHR_buffer_device_address extension trampoline/terminators
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR VkDeviceAddress VKAPI_CALL GetBufferDeviceAddressKHR(
|
|
|
|
+ VkDevice device,
|
|
|
|
+ const VkBufferDeviceAddressInfo* pInfo) {
|
|
|
|
+ const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
|
|
+ return disp->GetBufferDeviceAddressKHR(device, pInfo);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR uint64_t VKAPI_CALL GetBufferOpaqueCaptureAddressKHR(
|
|
|
|
+ VkDevice device,
|
|
|
|
+ const VkBufferDeviceAddressInfo* pInfo) {
|
|
|
|
+ const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
|
|
+ return disp->GetBufferOpaqueCaptureAddressKHR(device, pInfo);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR uint64_t VKAPI_CALL GetDeviceMemoryOpaqueCaptureAddressKHR(
|
|
|
|
+ VkDevice device,
|
|
|
|
+ const VkDeviceMemoryOpaqueCaptureAddressInfo* pInfo) {
|
|
|
|
+ const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
|
|
+ return disp->GetDeviceMemoryOpaqueCaptureAddressKHR(device, pInfo);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
// ---- VK_KHR_pipeline_executable_properties extension trampoline/terminators
|
|
// ---- VK_KHR_pipeline_executable_properties extension trampoline/terminators
|
|
|
|
|
|
VKAPI_ATTR VkResult VKAPI_CALL GetPipelineExecutablePropertiesKHR(
|
|
VKAPI_ATTR VkResult VKAPI_CALL GetPipelineExecutablePropertiesKHR(
|
|
@@ -2552,7 +2717,18 @@ VKAPI_ATTR void VKAPI_CALL QueueBeginDebugUtilsLabelEXT(
|
|
const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(queue);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(queue);
|
|
if (disp->QueueBeginDebugUtilsLabelEXT != NULL) {
|
|
if (disp->QueueBeginDebugUtilsLabelEXT != NULL) {
|
|
- disp->QueueBeginDebugUtilsLabelEXT(queue, pLabelInfo);
|
|
|
|
|
|
+ disp->QueueBeginDebugUtilsLabelEXT(queue, pLabelInfo);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR void VKAPI_CALL terminator_QueueBeginDebugUtilsLabelEXT(
|
|
|
|
+ VkQueue queue,
|
|
|
|
+ const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
|
|
+ uint32_t icd_index = 0;
|
|
|
|
+ struct loader_device *dev;
|
|
|
|
+ struct loader_icd_term *icd_term = loader_get_icd_and_device(queue, &dev, &icd_index);
|
|
|
|
+ if (NULL != icd_term && NULL != icd_term->dispatch.QueueBeginDebugUtilsLabelEXT) {
|
|
|
|
+ icd_term->dispatch.QueueBeginDebugUtilsLabelEXT(queue, pLabelInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2560,7 +2736,17 @@ VKAPI_ATTR void VKAPI_CALL QueueEndDebugUtilsLabelEXT(
|
|
VkQueue queue) {
|
|
VkQueue queue) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(queue);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(queue);
|
|
if (disp->QueueEndDebugUtilsLabelEXT != NULL) {
|
|
if (disp->QueueEndDebugUtilsLabelEXT != NULL) {
|
|
- disp->QueueEndDebugUtilsLabelEXT(queue);
|
|
|
|
|
|
+ disp->QueueEndDebugUtilsLabelEXT(queue);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR void VKAPI_CALL terminator_QueueEndDebugUtilsLabelEXT(
|
|
|
|
+ VkQueue queue) {
|
|
|
|
+ uint32_t icd_index = 0;
|
|
|
|
+ struct loader_device *dev;
|
|
|
|
+ struct loader_icd_term *icd_term = loader_get_icd_and_device(queue, &dev, &icd_index);
|
|
|
|
+ if (NULL != icd_term && NULL != icd_term->dispatch.QueueEndDebugUtilsLabelEXT) {
|
|
|
|
+ icd_term->dispatch.QueueEndDebugUtilsLabelEXT(queue);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2569,7 +2755,18 @@ VKAPI_ATTR void VKAPI_CALL QueueInsertDebugUtilsLabelEXT(
|
|
const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(queue);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(queue);
|
|
if (disp->QueueInsertDebugUtilsLabelEXT != NULL) {
|
|
if (disp->QueueInsertDebugUtilsLabelEXT != NULL) {
|
|
- disp->QueueInsertDebugUtilsLabelEXT(queue, pLabelInfo);
|
|
|
|
|
|
+ disp->QueueInsertDebugUtilsLabelEXT(queue, pLabelInfo);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR void VKAPI_CALL terminator_QueueInsertDebugUtilsLabelEXT(
|
|
|
|
+ VkQueue queue,
|
|
|
|
+ const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
|
|
+ uint32_t icd_index = 0;
|
|
|
|
+ struct loader_device *dev;
|
|
|
|
+ struct loader_icd_term *icd_term = loader_get_icd_and_device(queue, &dev, &icd_index);
|
|
|
|
+ if (NULL != icd_term && NULL != icd_term->dispatch.QueueInsertDebugUtilsLabelEXT) {
|
|
|
|
+ icd_term->dispatch.QueueInsertDebugUtilsLabelEXT(queue, pLabelInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2578,7 +2775,18 @@ VKAPI_ATTR void VKAPI_CALL CmdBeginDebugUtilsLabelEXT(
|
|
const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
if (disp->CmdBeginDebugUtilsLabelEXT != NULL) {
|
|
if (disp->CmdBeginDebugUtilsLabelEXT != NULL) {
|
|
- disp->CmdBeginDebugUtilsLabelEXT(commandBuffer, pLabelInfo);
|
|
|
|
|
|
+ disp->CmdBeginDebugUtilsLabelEXT(commandBuffer, pLabelInfo);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR void VKAPI_CALL terminator_CmdBeginDebugUtilsLabelEXT(
|
|
|
|
+ VkCommandBuffer commandBuffer,
|
|
|
|
+ const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
|
|
+ uint32_t icd_index = 0;
|
|
|
|
+ struct loader_device *dev;
|
|
|
|
+ struct loader_icd_term *icd_term = loader_get_icd_and_device(commandBuffer, &dev, &icd_index);
|
|
|
|
+ if (NULL != icd_term && NULL != icd_term->dispatch.CmdBeginDebugUtilsLabelEXT) {
|
|
|
|
+ icd_term->dispatch.CmdBeginDebugUtilsLabelEXT(commandBuffer, pLabelInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2586,7 +2794,17 @@ VKAPI_ATTR void VKAPI_CALL CmdEndDebugUtilsLabelEXT(
|
|
VkCommandBuffer commandBuffer) {
|
|
VkCommandBuffer commandBuffer) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
if (disp->CmdEndDebugUtilsLabelEXT != NULL) {
|
|
if (disp->CmdEndDebugUtilsLabelEXT != NULL) {
|
|
- disp->CmdEndDebugUtilsLabelEXT(commandBuffer);
|
|
|
|
|
|
+ disp->CmdEndDebugUtilsLabelEXT(commandBuffer);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR void VKAPI_CALL terminator_CmdEndDebugUtilsLabelEXT(
|
|
|
|
+ VkCommandBuffer commandBuffer) {
|
|
|
|
+ uint32_t icd_index = 0;
|
|
|
|
+ struct loader_device *dev;
|
|
|
|
+ struct loader_icd_term *icd_term = loader_get_icd_and_device(commandBuffer, &dev, &icd_index);
|
|
|
|
+ if (NULL != icd_term && NULL != icd_term->dispatch.CmdEndDebugUtilsLabelEXT) {
|
|
|
|
+ icd_term->dispatch.CmdEndDebugUtilsLabelEXT(commandBuffer);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2595,7 +2813,18 @@ VKAPI_ATTR void VKAPI_CALL CmdInsertDebugUtilsLabelEXT(
|
|
const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(commandBuffer);
|
|
if (disp->CmdInsertDebugUtilsLabelEXT != NULL) {
|
|
if (disp->CmdInsertDebugUtilsLabelEXT != NULL) {
|
|
- disp->CmdInsertDebugUtilsLabelEXT(commandBuffer, pLabelInfo);
|
|
|
|
|
|
+ disp->CmdInsertDebugUtilsLabelEXT(commandBuffer, pLabelInfo);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+VKAPI_ATTR void VKAPI_CALL terminator_CmdInsertDebugUtilsLabelEXT(
|
|
|
|
+ VkCommandBuffer commandBuffer,
|
|
|
|
+ const VkDebugUtilsLabelEXT* pLabelInfo) {
|
|
|
|
+ uint32_t icd_index = 0;
|
|
|
|
+ struct loader_device *dev;
|
|
|
|
+ struct loader_icd_term *icd_term = loader_get_icd_and_device(commandBuffer, &dev, &icd_index);
|
|
|
|
+ if (NULL != icd_term && NULL != icd_term->dispatch.CmdInsertDebugUtilsLabelEXT) {
|
|
|
|
+ icd_term->dispatch.CmdInsertDebugUtilsLabelEXT(commandBuffer, pLabelInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3091,7 +3320,7 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateImagePipeSurfaceFUCHSIA(
|
|
|
|
|
|
VKAPI_ATTR VkDeviceAddress VKAPI_CALL GetBufferDeviceAddressEXT(
|
|
VKAPI_ATTR VkDeviceAddress VKAPI_CALL GetBufferDeviceAddressEXT(
|
|
VkDevice device,
|
|
VkDevice device,
|
|
- const VkBufferDeviceAddressInfoEXT* pInfo) {
|
|
|
|
|
|
+ const VkBufferDeviceAddressInfo* pInfo) {
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
const VkLayerDispatchTable *disp = loader_get_dispatch(device);
|
|
return disp->GetBufferDeviceAddressEXT(device, pInfo);
|
|
return disp->GetBufferDeviceAddressEXT(device, pInfo);
|
|
}
|
|
}
|
|
@@ -3413,6 +3642,24 @@ bool extension_instance_gpa(struct loader_instance *ptr_instance, const char *na
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // ---- VK_KHR_performance_query extension commands
|
|
|
|
+ if (!strcmp("vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR", name)) {
|
|
|
|
+ *addr = (void *)EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR;
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ if (!strcmp("vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR", name)) {
|
|
|
|
+ *addr = (void *)GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR;
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ if (!strcmp("vkAcquireProfilingLockKHR", name)) {
|
|
|
|
+ *addr = (void *)AcquireProfilingLockKHR;
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ if (!strcmp("vkReleaseProfilingLockKHR", name)) {
|
|
|
|
+ *addr = (void *)ReleaseProfilingLockKHR;
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
// ---- VK_KHR_get_surface_capabilities2 extension commands
|
|
// ---- VK_KHR_get_surface_capabilities2 extension commands
|
|
if (!strcmp("vkGetPhysicalDeviceSurfaceCapabilities2KHR", name)) {
|
|
if (!strcmp("vkGetPhysicalDeviceSurfaceCapabilities2KHR", name)) {
|
|
*addr = (ptr_instance->enabled_known_extensions.khr_get_surface_capabilities2 == 1)
|
|
*addr = (ptr_instance->enabled_known_extensions.khr_get_surface_capabilities2 == 1)
|
|
@@ -3491,6 +3738,20 @@ bool extension_instance_gpa(struct loader_instance *ptr_instance, const char *na
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // ---- VK_KHR_buffer_device_address extension commands
|
|
|
|
+ if (!strcmp("vkGetBufferDeviceAddressKHR", name)) {
|
|
|
|
+ *addr = (void *)GetBufferDeviceAddressKHR;
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ if (!strcmp("vkGetBufferOpaqueCaptureAddressKHR", name)) {
|
|
|
|
+ *addr = (void *)GetBufferOpaqueCaptureAddressKHR;
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ if (!strcmp("vkGetDeviceMemoryOpaqueCaptureAddressKHR", name)) {
|
|
|
|
+ *addr = (void *)GetDeviceMemoryOpaqueCaptureAddressKHR;
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
// ---- VK_KHR_pipeline_executable_properties extension commands
|
|
// ---- VK_KHR_pipeline_executable_properties extension commands
|
|
if (!strcmp("vkGetPipelineExecutablePropertiesKHR", name)) {
|
|
if (!strcmp("vkGetPipelineExecutablePropertiesKHR", name)) {
|
|
*addr = (void *)GetPipelineExecutablePropertiesKHR;
|
|
*addr = (void *)GetPipelineExecutablePropertiesKHR;
|
|
@@ -4013,6 +4274,12 @@ bool extension_instance_gpa(struct loader_instance *ptr_instance, const char *na
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // ---- VK_EXT_tooling_info extension commands
|
|
|
|
+ if (!strcmp("vkGetPhysicalDeviceToolPropertiesEXT", name)) {
|
|
|
|
+ *addr = (void *)GetPhysicalDeviceToolPropertiesEXT;
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
// ---- VK_NV_cooperative_matrix extension commands
|
|
// ---- VK_NV_cooperative_matrix extension commands
|
|
if (!strcmp("vkGetPhysicalDeviceCooperativeMatrixPropertiesNV", name)) {
|
|
if (!strcmp("vkGetPhysicalDeviceCooperativeMatrixPropertiesNV", name)) {
|
|
*addr = (void *)GetPhysicalDeviceCooperativeMatrixPropertiesNV;
|
|
*addr = (void *)GetPhysicalDeviceCooperativeMatrixPropertiesNV;
|
|
@@ -4173,6 +4440,18 @@ PFN_vkVoidFunction get_extension_device_proc_terminator(struct loader_device *de
|
|
addr = (PFN_vkVoidFunction)terminator_SetDebugUtilsObjectNameEXT;
|
|
addr = (PFN_vkVoidFunction)terminator_SetDebugUtilsObjectNameEXT;
|
|
} else if(!strcmp(pName, "vkSetDebugUtilsObjectTagEXT")) {
|
|
} else if(!strcmp(pName, "vkSetDebugUtilsObjectTagEXT")) {
|
|
addr = (PFN_vkVoidFunction)terminator_SetDebugUtilsObjectTagEXT;
|
|
addr = (PFN_vkVoidFunction)terminator_SetDebugUtilsObjectTagEXT;
|
|
|
|
+ } else if(!strcmp(pName, "vkQueueBeginDebugUtilsLabelEXT")) {
|
|
|
|
+ addr = (PFN_vkVoidFunction)terminator_QueueBeginDebugUtilsLabelEXT;
|
|
|
|
+ } else if(!strcmp(pName, "vkQueueEndDebugUtilsLabelEXT")) {
|
|
|
|
+ addr = (PFN_vkVoidFunction)terminator_QueueEndDebugUtilsLabelEXT;
|
|
|
|
+ } else if(!strcmp(pName, "vkQueueInsertDebugUtilsLabelEXT")) {
|
|
|
|
+ addr = (PFN_vkVoidFunction)terminator_QueueInsertDebugUtilsLabelEXT;
|
|
|
|
+ } else if(!strcmp(pName, "vkCmdBeginDebugUtilsLabelEXT")) {
|
|
|
|
+ addr = (PFN_vkVoidFunction)terminator_CmdBeginDebugUtilsLabelEXT;
|
|
|
|
+ } else if(!strcmp(pName, "vkCmdEndDebugUtilsLabelEXT")) {
|
|
|
|
+ addr = (PFN_vkVoidFunction)terminator_CmdEndDebugUtilsLabelEXT;
|
|
|
|
+ } else if(!strcmp(pName, "vkCmdInsertDebugUtilsLabelEXT")) {
|
|
|
|
+ addr = (PFN_vkVoidFunction)terminator_CmdInsertDebugUtilsLabelEXT;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
|
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
|
@@ -4296,6 +4575,10 @@ const VkLayerInstanceDispatchTable instance_disp = {
|
|
// ---- VK_KHR_external_fence_capabilities extension commands
|
|
// ---- VK_KHR_external_fence_capabilities extension commands
|
|
.GetPhysicalDeviceExternalFencePropertiesKHR = terminator_GetPhysicalDeviceExternalFenceProperties,
|
|
.GetPhysicalDeviceExternalFencePropertiesKHR = terminator_GetPhysicalDeviceExternalFenceProperties,
|
|
|
|
|
|
|
|
+ // ---- VK_KHR_performance_query extension commands
|
|
|
|
+ .EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR = terminator_EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR,
|
|
|
|
+ .GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR = terminator_GetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR,
|
|
|
|
+
|
|
// ---- VK_KHR_get_surface_capabilities2 extension commands
|
|
// ---- VK_KHR_get_surface_capabilities2 extension commands
|
|
.GetPhysicalDeviceSurfaceCapabilities2KHR = terminator_GetPhysicalDeviceSurfaceCapabilities2KHR,
|
|
.GetPhysicalDeviceSurfaceCapabilities2KHR = terminator_GetPhysicalDeviceSurfaceCapabilities2KHR,
|
|
.GetPhysicalDeviceSurfaceFormats2KHR = terminator_GetPhysicalDeviceSurfaceFormats2KHR,
|
|
.GetPhysicalDeviceSurfaceFormats2KHR = terminator_GetPhysicalDeviceSurfaceFormats2KHR,
|
|
@@ -4372,6 +4655,9 @@ const VkLayerInstanceDispatchTable instance_disp = {
|
|
.CreateMetalSurfaceEXT = terminator_CreateMetalSurfaceEXT,
|
|
.CreateMetalSurfaceEXT = terminator_CreateMetalSurfaceEXT,
|
|
#endif // VK_USE_PLATFORM_METAL_EXT
|
|
#endif // VK_USE_PLATFORM_METAL_EXT
|
|
|
|
|
|
|
|
+ // ---- VK_EXT_tooling_info extension commands
|
|
|
|
+ .GetPhysicalDeviceToolPropertiesEXT = terminator_GetPhysicalDeviceToolPropertiesEXT,
|
|
|
|
+
|
|
// ---- VK_NV_cooperative_matrix extension commands
|
|
// ---- VK_NV_cooperative_matrix extension commands
|
|
.GetPhysicalDeviceCooperativeMatrixPropertiesNV = terminator_GetPhysicalDeviceCooperativeMatrixPropertiesNV,
|
|
.GetPhysicalDeviceCooperativeMatrixPropertiesNV = terminator_GetPhysicalDeviceCooperativeMatrixPropertiesNV,
|
|
|
|
|