Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/sdk-1.3.261' into ubuntu/jammy…
Browse files Browse the repository at this point in the history
…-unstable
  • Loading branch information
johnzupin committed Aug 21, 2023
2 parents 8279c4f + a7da702 commit fc2a5dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vulkaninfo/vulkaninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -913,11 +913,15 @@ util::vulkaninfo_optional<ParsedResults> parse_arguments(int argc, char **argv,
#endif
++i;
}
} else if (strncmp("--json", argv[i], 6) == 0 || strcmp(argv[i], "-j") == 0) {
} else if (strncmp("--json", argv[i], 6) == 0 || strncmp(argv[i], "-j", 2) == 0) {
if (strlen(argv[i]) > 7 && strncmp("--json=", argv[i], 7) == 0) {
results.selected_gpu = static_cast<uint32_t>(strtol(argv[i] + 7, nullptr, 10));
results.has_selected_gpu = true;
}
if (strlen(argv[i]) > 3 && strncmp("-j=", argv[i], 3) == 0) {
results.selected_gpu = static_cast<uint32_t>(strtol(argv[i] + 3, nullptr, 10));
results.has_selected_gpu = true;
}
results.output_category = OutputCategory::profile_json;
results.default_filename = "vulkaninfo.json";
results.print_to_file = true;
Expand Down

0 comments on commit fc2a5dc

Please sign in to comment.