From 2a037f489c13bdd59d1e16739579a6b841073be8 Mon Sep 17 00:00:00 2001 From: Jeremy Kniager Date: Wed, 27 Jun 2018 11:49:49 -0600 Subject: vulkaninfo: Add VK_KHR_maintenance3 support Added output for VkPhysicalDeviceMaintenance3Properties struct info. Change-Id: I8c7a21e27d0bdaf77af49881d777764f854d874c --- vulkaninfo/vulkaninfo.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/vulkaninfo/vulkaninfo.c b/vulkaninfo/vulkaninfo.c index aabddb0e..f51121a4 100644 --- a/vulkaninfo/vulkaninfo.c +++ b/vulkaninfo/vulkaninfo.c @@ -885,7 +885,9 @@ static void AppGpuInit(struct AppGpu *gpu, struct AppInstance *inst, uint32_t id {.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT, .mem_size = sizeof(VkPhysicalDeviceDiscardRectanglePropertiesEXT)}, {.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES_KHR, - .mem_size = sizeof(VkPhysicalDeviceMultiviewPropertiesKHR)}}; + .mem_size = sizeof(VkPhysicalDeviceMultiviewPropertiesKHR)}, + {.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES_KHR, + .mem_size = sizeof(VkPhysicalDeviceMaintenance3PropertiesKHR)}}; uint32_t chain_info_len = ARRAY_SIZE(chain_info); @@ -2549,6 +2551,19 @@ static void AppGpuDumpProps(const struct AppGpu *gpu, FILE *out) { printf("\tmaxMultiviewViewCount = %u\n", multiview_props->maxMultiviewViewCount ); printf("\tmaxMultiviewInstanceIndex = %u\n", multiview_props->maxMultiviewInstanceIndex); } + } else if (structure->sType == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES_KHR) { + VkPhysicalDeviceMaintenance3PropertiesKHR *maintenance3_props = (VkPhysicalDeviceMaintenance3PropertiesKHR*)structure; + if (html_output) { + fprintf(out, "\n\t\t\t\t\t
VkPhysicalDeviceMaintenance3Properties\n"); + fprintf(out, "\t\t\t\t\t\t
maxPerSetDescriptors =
" PRIuLEAST32 "
\n", maintenance3_props->maxPerSetDescriptors); + fprintf(out, "\t\t\t\t\t\t
maxMemoryAllocationSize =
" PRIuLEAST32 "
\n", maintenance3_props->maxMemoryAllocationSize); + fprintf(out, "\t\t\t\t\t
\n"); + } else if (human_readable_output) { + printf("\nVkPhysicalDeviceMaintenance3Properties:\n"); + printf("=======================================\n"); + printf("\tmaxPerSetDescriptors = " PRIuLEAST32 "\n", maintenance3_props->maxPerSetDescriptors ); + printf("\tmaxMemoryAllocationSize = " PRIuLEAST32 "\n", maintenance3_props->maxMemoryAllocationSize); + } } place = structure->pNext; } -- cgit v1.2.3