From 3d99dd55a04dd91af96d647d98d525df8ff7deda Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Fri, 21 Dec 2018 13:46:06 +0100 Subject: [PATCH] turnip: Stop hardcoding the msm version check. --- src/freedreno/vulkan/tu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index b5a8a6f13bc..e595152d465 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -179,7 +179,8 @@ tu_physical_device_init(struct tu_physical_device *device, "device %s does not use the msm kernel driver", path); } - if (version->version_major != 1 || version->version_minor < 3) { + if (version->version_major != min_version_major || + version->version_minor < min_version_minor) { result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER, "kernel driver for device %s has version %d.%d, " "but Vulkan requires version >= %d.%d", -- 2.30.2