vulkaninfo: Fix HTML output
authorJeremy Kniager <jeremyk@lunarg.com>
Fri, 12 Apr 2019 16:45:03 +0000 (10:45 -0600)
committerjeremyk-lunarg <jeremyk@lunarg.com>
Fri, 12 Apr 2019 19:19:04 +0000 (13:19 -0600)
Fixed the HTML output for the
VkPhysicalDeviceDepthStencilResolvePropertiesKHR
structure.

HTML output was being sent to the terminal instead of
the HTML file.

Change-Id: I26daa670aa732c0c758dbbc48c1fcdc02e2da38b

vulkaninfo/vulkaninfo.c

index a08f2d4..d8961a1 100644 (file)
@@ -4580,49 +4580,49 @@ static void AppGpuDumpProps(const struct AppGpu *gpu, FILE *out) {
                     fprintf(out, "\n\t\t\t\t\t<details><summary>VkPhysicalDeviceDepthStencilResolveProperties</summary>\n");
                     fprintf(out, "\t\t\t\t\t\t<details><summary>supportedDepthResolveModes</summary></details>\n");
                     if (depth_stencil_resolve_properties->supportedDepthResolveModes == 0) {
-                        printf(
-                            "\t\t\t\t\t\t<details><summary><span "
-                            "class='val'>VK_RESOLVE_MODE_NONE_KHR</span></summary></details>\n");
+                        fprintf(out,
+                                "\t\t\t\t\t\t<details><summary><span "
+                                "class='val'>VK_RESOLVE_MODE_NONE_KHR</span></summary></details>\n");
                     } else {
                         if (depth_stencil_resolve_properties->supportedDepthResolveModes & VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR)
-                            printf(
-                                "\t\t\t\t\t\t<details><summary><span "
-                                "class='val'>VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR</span></summary></details>\n");
+                            fprintf(out,
+                                    "\t\t\t\t\t\t<details><summary><span "
+                                    "class='val'>VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR</span></summary></details>\n");
                         if (depth_stencil_resolve_properties->supportedDepthResolveModes & VK_RESOLVE_MODE_AVERAGE_BIT_KHR)
-                            printf(
-                                "\t\t\t\t\t\t<details><summary><span "
-                                "class='val'>VK_RESOLVE_MODE_AVERAGE_BIT_KHR</span></summary></details>\n");
+                            fprintf(out,
+                                    "\t\t\t\t\t\t<details><summary><span "
+                                    "class='val'>VK_RESOLVE_MODE_AVERAGE_BIT_KHR</span></summary></details>\n");
                         if (depth_stencil_resolve_properties->supportedDepthResolveModes & VK_RESOLVE_MODE_MIN_BIT_KHR)
-                            printf(
-                                "\t\t\t\t\t\t<details><summary><span "
-                                "class='val'>VK_RESOLVE_MODE_MIN_BIT_KHR</span></summary></details>\n");
+                            fprintf(out,
+                                    "\t\t\t\t\t\t<details><summary><span "
+                                    "class='val'>VK_RESOLVE_MODE_MIN_BIT_KHR</span></summary></details>\n");
                         if (depth_stencil_resolve_properties->supportedDepthResolveModes & VK_RESOLVE_MODE_MAX_BIT_KHR)
-                            printf(
-                                "\t\t\t\t\t\t<details><summary><span "
-                                "class='val'>VK_RESOLVE_MODE_MAX_BIT_KHR</span></summary></details>\n");
+                            fprintf(out,
+                                    "\t\t\t\t\t\t<details><summary><span "
+                                    "class='val'>VK_RESOLVE_MODE_MAX_BIT_KHR</span></summary></details>\n");
                     }
                     fprintf(out, "\t\t\t\t\t\t<details><summary>supportedStencilResolveModes</summary></details>\n");
                     if (depth_stencil_resolve_properties->supportedStencilResolveModes == 0) {
-                        printf(
-                            "\t\t\t\t\t\t<details><summary><span "
-                            "class='val'>VK_RESOLVE_MODE_NONE_KHR</span></summary></details>\n");
+                        fprintf(out,
+                                "\t\t\t\t\t\t<details><summary><span "
+                                "class='val'>VK_RESOLVE_MODE_NONE_KHR</span></summary></details>\n");
                     } else {
                         if (depth_stencil_resolve_properties->supportedStencilResolveModes & VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR)
-                            printf(
-                                "\t\t\t\t\t\t<details><summary><span "
-                                "class='val'>VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR</span></summary></details>\n");
+                            fprintf(out,
+                                    "\t\t\t\t\t\t<details><summary><span "
+                                    "class='val'>VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR</span></summary></details>\n");
                         if (depth_stencil_resolve_properties->supportedStencilResolveModes & VK_RESOLVE_MODE_AVERAGE_BIT_KHR)
-                            printf(
-                                "\t\t\t\t\t\t<details><summary><span "
-                                "class='val'>VK_RESOLVE_MODE_AVERAGE_BIT_KHR</span></summary></details>\n");
+                            fprintf(out,
+                                    "\t\t\t\t\t\t<details><summary><span "
+                                    "class='val'>VK_RESOLVE_MODE_AVERAGE_BIT_KHR</span></summary></details>\n");
                         if (depth_stencil_resolve_properties->supportedStencilResolveModes & VK_RESOLVE_MODE_MIN_BIT_KHR)
-                            printf(
-                                "\t\t\t\t\t\t<details><summary><span "
-                                "class='val'>VK_RESOLVE_MODE_MIN_BIT_KHR</span></summary></details>\n");
+                            fprintf(out,
+                                    "\t\t\t\t\t\t<details><summary><span "
+                                    "class='val'>VK_RESOLVE_MODE_MIN_BIT_KHR</span></summary></details>\n");
                         if (depth_stencil_resolve_properties->supportedStencilResolveModes & VK_RESOLVE_MODE_MAX_BIT_KHR)
-                            printf(
-                                "\t\t\t\t\t\t<details><summary><span "
-                                "class='val'>VK_RESOLVE_MODE_MAX_BIT_KHR</span></summary></details>\n");
+                            fprintf(out,
+                                    "\t\t\t\t\t\t<details><summary><span "
+                                    "class='val'>VK_RESOLVE_MODE_MAX_BIT_KHR</span></summary></details>\n");
                     }
                     fprintf(out,
                             "\t\t\t\t\t\t<details><summary>independentResolveNone = <span class='val'>%" PRIuLEAST32