diff options
| author | Xiaolei Yu <dreifachstein@gmail.com> | 2021-06-28 12:07:57 +0800 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2021-06-30 09:22:20 -0600 |
| commit | 68b1feb2727e4470de2a1e8b4963a2ef83b59d4a (patch) | |
| tree | 3997a67eebf26eef28f8d7df7d4128d171f9fda1 | |
| parent | aaebda90a9a86b9170d18685f17e2df10a6371fd (diff) | |
| download | usermoji-68b1feb2727e4470de2a1e8b4963a2ef83b59d4a.tar.xz | |
vulkaninfo: Fix device version check
am 72c2d5f0b0e59bf429144d2e60d8fd6ce1710887
| -rw-r--r-- | vulkaninfo/vulkaninfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h index 9a74b9fb..72854cf2 100644 --- a/vulkaninfo/vulkaninfo.h +++ b/vulkaninfo/vulkaninfo.h @@ -1487,12 +1487,12 @@ struct AppGpu { AppGpu(AppInstance &inst, uint32_t id, VkPhysicalDevice phys_device, pNextChainInfos chainInfos) : inst(inst), id(id), phys_device(phys_device) { + inst.dll.fp_vkGetPhysicalDeviceProperties(phys_device, &props); + // needs to find the minimum of the instance and device version, and use that to print the device info uint32_t gpu_version = props.apiVersion < inst.instance_version ? props.apiVersion : inst.instance_version; api_version = make_vulkan_version(gpu_version); - inst.dll.fp_vkGetPhysicalDeviceProperties(phys_device, &props); - inst.dll.fp_vkGetPhysicalDeviceMemoryProperties(phys_device, &memory_props); inst.dll.fp_vkGetPhysicalDeviceFeatures(phys_device, &features); |
