Skip to content

Commit 54a7009

Browse files
committed
vulkaninfo: fix nesting of HTML output
Four extensions, if supported on a device, didn't emit the proper "</details>" closing tag. This caused the nesting to be incorrect while viewing the HTML output.
1 parent 3ccab0b commit 54a7009

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vulkaninfo/vulkaninfo.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2897,6 +2897,7 @@ static void AppGpuDumpFeatures(const struct AppGpu *gpu, FILE *out) {
28972897
"\t\t\t\t\t\t<details><summary>shaderSharedInt64Atomics = <div class='val'>%" PRIuLEAST32
28982898
"</div></summary></details>\n",
28992899
shader_atomic_int64_features->shaderSharedInt64Atomics);
2900+
fprintf(out, "\t\t\t\t\t</details>\n");
29002901
} else if (human_readable_output) {
29012902
printf("\nVkPhysicalDeviceShaderAtomicInt64Features:\n");
29022903
printf("==========================================\n");
@@ -2920,6 +2921,7 @@ static void AppGpuDumpFeatures(const struct AppGpu *gpu, FILE *out) {
29202921
"\t\t\t\t\t\t<details><summary>geometryStreams = <div class='val'>%" PRIuLEAST32
29212922
"</div></summary></details>\n",
29222923
transform_feedback_features->geometryStreams);
2924+
fprintf(out, "\t\t\t\t\t</details>\n");
29232925
} else if (human_readable_output) {
29242926
printf("\nVkPhysicalDeviceTransformFeedbackFeatures:\n");
29252927
printf("==========================================\n");
@@ -2937,6 +2939,7 @@ static void AppGpuDumpFeatures(const struct AppGpu *gpu, FILE *out) {
29372939
"\t\t\t\t\t\t<details><summary>scalarBlockLayout = <div class='val'>%" PRIuLEAST32
29382940
"</div></summary></details>\n",
29392941
scalar_block_layout_features->scalarBlockLayout);
2942+
fprintf(out, "\t\t\t\t\t</details>\n");
29402943
} else if (human_readable_output) {
29412944
printf("\nVkPhysicalDeviceScalarBlockLayoutFeatures:\n");
29422945
printf("==========================================\n");
@@ -2961,6 +2964,7 @@ static void AppGpuDumpFeatures(const struct AppGpu *gpu, FILE *out) {
29612964
"\t\t\t\t\t\t<details><summary>fragmentDensityMapNonSubsampledImages = <div class='val'>%" PRIuLEAST32
29622965
"</div></summary></details>\n",
29632966
fragment_density_map_features->fragmentDensityMapNonSubsampledImages);
2967+
fprintf(out, "\t\t\t\t\t</details>\n");
29642968
} else if (human_readable_output) {
29652969
printf("\nVkPhysicalDeviceFragmentDensityMapFeatures:\n");
29662970
printf("==========================================\n");

0 commit comments

Comments
 (0)