From fedc8b7faf7bd3018b5d3375c9b4783151398d4f Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Mon, 29 Nov 2021 16:15:55 -0700 Subject: vulkaninfo: Use gpu version only for AppGpu The api version of the GPU should solely be based on the GPU version reported by VkPhysicalDeviceProperties. The need to guard against the instance version should be explicit where necessary and not implicitely pulled into the version of the GPU. --- vulkaninfo/vulkaninfo.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h index e2ef653b..61d10536 100644 --- a/vulkaninfo/vulkaninfo.h +++ b/vulkaninfo/vulkaninfo.h @@ -1452,8 +1452,7 @@ struct AppGpu { 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); + api_version = make_vulkan_version(props.apiVersion); inst.dll.fp_vkGetPhysicalDeviceMemoryProperties(phys_device, &memory_props); -- cgit v1.2.3