diff options
| author | spencer-lunarg <spencer@lunarg.com> | 2025-12-17 09:48:57 -0500 |
|---|---|---|
| committer | Spencer Fricke <115671160+spencer-lunarg@users.noreply.github.com> | 2025-12-17 14:26:07 -0500 |
| commit | 61c4e7477213bb98ed7299651d6254bc5745e93d (patch) | |
| tree | 41d9fa375a3f20d5a945fe4278ff762f52a4908d /vulkaninfo/vulkaninfo.cpp | |
| parent | 2a288f8284243645a8a50fe5f4c53209fdbd7905 (diff) | |
| download | usermoji-61c4e7477213bb98ed7299651d6254bc5745e93d.tar.xz | |
vulkaninfo: Dump VkCooperativeMatrixPropertiesKHR and TimeDomain
Diffstat (limited to 'vulkaninfo/vulkaninfo.cpp')
| -rw-r--r-- | vulkaninfo/vulkaninfo.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vulkaninfo/vulkaninfo.cpp b/vulkaninfo/vulkaninfo.cpp index 17f1acb0..25fdf39b 100644 --- a/vulkaninfo/vulkaninfo.cpp +++ b/vulkaninfo/vulkaninfo.cpp @@ -591,6 +591,33 @@ void GpuDumpToolingInfo(Printer &p, AppGpu &gpu) { } } +void GpuDumpCooperativeMatrix(Printer &p, AppGpu &gpu) { + auto props = GetCooperativeMatrixInfo(gpu); + if (props.size() > 0) { + p.SetSubHeader(); + ObjectWrapper obj(p, "vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR"); + for (const auto prop : props) { + DumpVkCooperativeMatrixPropertiesKHR(p, "VkCooperativeMatrixPropertiesKHR", prop); + p.AddNewline(); + } + } +} + +void GpuDumpCalibrateableTimeDomain(Printer &p, AppGpu &gpu) { + auto props = GetTimeDomainInfo(gpu); + if (props.size() > 0) { + p.SetSubHeader(); + ObjectWrapper obj_mem_props(p, "vkGetPhysicalDeviceCalibrateableTimeDomainsKHR"); + { + for (uint32_t i = 0; i < props.size(); ++i) { + p.SetElementIndex(static_cast<int>(i)); + DumpVkTimeDomainKHR(p, "pTimeDomains", props[i]); + p.AddNewline(); + } + } + } +} + void GpuDevDump(Printer &p, AppGpu &gpu) { p.SetHeader(); ObjectWrapper obj_format_props(p, "Format Properties"); @@ -735,6 +762,11 @@ void DumpGpu(Printer &p, AppGpu &gpu, const ShowSettings &show) { GpuDumpToolingInfo(p, gpu); } + if (show.all) { + GpuDumpCooperativeMatrix(p, gpu); + GpuDumpCalibrateableTimeDomain(p, gpu); + } + if (p.Type() != OutputType::text || show.formats) { GpuDevDump(p, gpu); } |
