From 3f69f18b28095244fe71666480c4bfb5efa0623f Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Mon, 29 Nov 2021 17:21:03 -0700 Subject: vulkaninfo: Remove redundant parameter in GgpuDumpQueueProps --- vulkaninfo/vulkaninfo.cpp | 8 ++++---- 1 file 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 &surfaces, const AppQueueFamilyProperties &queue) { +void GpuDumpQueueProps(Printer &p, AppGpu &gpu, const AppQueueFamilyProperties &queue) { VkQueueFamilyProperties props = queue.props; p.SetSubHeader().SetElementIndex(static_cast(queue.queue_index)); ObjectWrapper obj_queue_props(p, "queueProperties"); @@ -352,12 +352,12 @@ void GpuDumpQueueProps(Printer &p, AppGpu &gpu, std::vector &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); -- cgit v1.2.3