diff options
| author | Jeremy Kniager <jeremyk@lunarg.com> | 2018-06-27 11:49:49 -0600 |
|---|---|---|
| committer | jeremyk-lunarg <jeremyk@lunarg.com> | 2018-06-29 14:59:19 -0600 |
| commit | 2a037f489c13bdd59d1e16739579a6b841073be8 (patch) | |
| tree | 1818d614e3b75166090a7f6741d2d711c6dda1cb | |
| parent | fb5d4829fa1daddb36bc55084e26d8253cd92552 (diff) | |
| download | usermoji-2a037f489c13bdd59d1e16739579a6b841073be8.tar.xz | |
vulkaninfo: Add VK_KHR_maintenance3 support
Added output for VkPhysicalDeviceMaintenance3Properties
struct info.
Change-Id: I8c7a21e27d0bdaf77af49881d777764f854d874c
| -rw-r--r-- | vulkaninfo/vulkaninfo.c | 17 |
1 files changed, 16 insertions, 1 deletions
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<details><summary>VkPhysicalDeviceMaintenance3Properties</summary>\n"); + fprintf(out, "\t\t\t\t\t\t<details><summary>maxPerSetDescriptors = <div class='val'>" PRIuLEAST32 "</div></summary></details>\n", maintenance3_props->maxPerSetDescriptors); + fprintf(out, "\t\t\t\t\t\t<details><summary>maxMemoryAllocationSize = <div class='val'>" PRIuLEAST32 "</div></summary></details>\n", maintenance3_props->maxMemoryAllocationSize); + fprintf(out, "\t\t\t\t\t</details>\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; } |
