vulkaninfo: Fix HTML format for multi-GPU computer
authorJeremy Kniager <jeremyk@lunarg.com>
Thu, 13 Jun 2019 16:19:03 +0000 (10:19 -0600)
committerjeremyk-lunarg <jeremyk@lunarg.com>
Thu, 13 Jun 2019 20:49:47 +0000 (14:49 -0600)
Fixes an issue found where the device properties
and extensions would only be printed for the first GPU
on a system when printing in HTML format.

Change-Id: Id6812d7c6b14915afb87fdb740e8918f4609d662

vulkaninfo/vulkaninfo.c

index 8570ed8..888055b 100644 (file)
@@ -4565,6 +4565,7 @@ static void AppGpuDumpProps(const struct AppGpu *gpu, FILE *out) {
                         "\t\t\t\t\t\t<details><summary>transformFeedbackDraw                      = <span class='val'>%" PRIuLEAST32
                         "</span></summary></details>\n",
                         transform_feedback_properties->transformFeedbackDraw);
+                    fprintf(out, "\t\t\t\t\t</details>\n");
                 } else if (human_readable_output) {
                     printf("\nVkPhysicalDeviceTransformFeedbackProperties\n");
                     printf("===========================================\n");
@@ -4618,6 +4619,7 @@ static void AppGpuDumpProps(const struct AppGpu *gpu, FILE *out) {
                             "\t\t\t\t\t\t<details><summary>fragmentDensityInvocations = <span class='val'>%" PRIuLEAST32
                             "</span></summary></details>\n",
                             fragment_density_map_properties->fragmentDensityInvocations);
+                    fprintf(out, "\t\t\t\t\t</details>\n");
                 } else if (human_readable_output) {
                     printf("\nVkPhysicalDeviceFragmentDensityMapProperties\n");
                     printf("============================================\n");
@@ -4691,6 +4693,7 @@ static void AppGpuDumpProps(const struct AppGpu *gpu, FILE *out) {
                             "\t\t\t\t\t\t<details><summary>independentResolve = <span class='val'>%" PRIuLEAST32
                             "</span></summary></details>\n",
                             depth_stencil_resolve_properties->independentResolve);
+                    fprintf(out, "\t\t\t\t\t</details>\n");
                 } else if (human_readable_output) {
                     printf("\nVkPhysicalDeviceDepthStencilResolveProperties\n");
                     printf("============================================\n");