aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2021-11-29 16:15:55 -0700
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2022-02-02 16:22:12 -0700
commitfedc8b7faf7bd3018b5d3375c9b4783151398d4f (patch)
tree52e318a6be340e81373e567f6b8f5a6dad0ab733
parent25802a2fa838932038ee8bdf76800b7c9c5fd517 (diff)
downloadusermoji-fedc8b7faf7bd3018b5d3375c9b4783151398d4f.tar.xz
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.
-rw-r--r--vulkaninfo/vulkaninfo.h3
1 files changed, 1 insertions, 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);