diff options
| author | Charles Giessen <charles@lunarg.com> | 2021-11-29 17:21:03 -0700 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2022-02-02 16:22:12 -0700 |
| commit | 3f69f18b28095244fe71666480c4bfb5efa0623f (patch) | |
| tree | 457da7ee5947d01d5134d2ca558979551d6419db | |
| parent | 7ee099356c24db66247b617467e759da539de16b (diff) | |
| download | usermoji-3f69f18b28095244fe71666480c4bfb5efa0623f.tar.xz | |
vulkaninfo: Remove redundant parameter in GgpuDumpQueueProps
| -rw-r--r-- | vulkaninfo/vulkaninfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vulkaninfo/vulkaninfo.cpp b/vulkaninfo/vulkaninfo.cpp index 8317723d..ade8c23a 100644 --- a/vulkaninfo/vulkaninfo.cpp +++ b/vulkaninfo/vulkaninfo.cpp @@ -334,7 +334,7 @@ void GpuDumpPropsJson(Printer &p, AppGpu &gpu) { DumpVkPhysicalDeviceSparseProperties(p, "VkPhysicalDeviceSparseProperties", gpu.props.sparseProperties); } -void GpuDumpQueueProps(Printer &p, AppGpu &gpu, std::vector<SurfaceExtension> &surfaces, const AppQueueFamilyProperties &queue) { +void GpuDumpQueueProps(Printer &p, AppGpu &gpu, const AppQueueFamilyProperties &queue) { VkQueueFamilyProperties props = queue.props; p.SetSubHeader().SetElementIndex(static_cast<int>(queue.queue_index)); ObjectWrapper obj_queue_props(p, "queueProperties"); @@ -352,12 +352,12 @@ void GpuDumpQueueProps(Printer &p, AppGpu &gpu, std::vector<SurfaceExtension> &s p.PrintKeyString("present support", queue.platforms_support_present ? "true" : "false"); } else { size_t width = 0; - for (auto &surface : surfaces) { + for (auto &surface : gpu.inst.surface_extensions) { if (surface.name.size() > width) width = surface.name.size(); } ObjectWrapper obj_present_support(p, "present support"); p.SetMinKeyWidth(width); - for (auto &surface : surfaces) { + for (auto &surface : gpu.inst.surface_extensions) { p.PrintKeyString(surface.name, surface.supports_present ? "true" : "false"); } } @@ -650,7 +650,7 @@ void DumpGpu(Printer &p, AppGpu &gpu, bool show_tooling_info, bool show_formats) p.SetHeader(); ObjectWrapper obj_family_props(p, "VkQueueFamilyProperties"); for (const auto &queue_prop : gpu.extended_queue_props) { - GpuDumpQueueProps(p, gpu, gpu.inst.surface_extensions, queue_prop); + GpuDumpQueueProps(p, gpu, queue_prop); } } GpuDumpMemoryProps(p, gpu); |
