From 68b1feb2727e4470de2a1e8b4963a2ef83b59d4a Mon Sep 17 00:00:00 2001 From: Xiaolei Yu Date: Mon, 28 Jun 2021 12:07:57 +0800 Subject: vulkaninfo: Fix device version check am 72c2d5f0b0e59bf429144d2e60d8fd6ce1710887 --- vulkaninfo/vulkaninfo.h | 4 ++-- 1 file 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); -- cgit v1.2.3