From 8dcca7f47fef66a98f797e4446deaa4b591c55b4 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 30 Aug 2022 14:54:02 -0700 Subject: [PATCH] anv: Fail to create a device on ver < 9 These are now only supported by hasvk. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_device.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 0c3f1da9641..13b3c448ae9 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -768,12 +768,14 @@ anv_physical_device_try_create(struct vk_instance *vk_instance, goto fail_fd; } - if (devinfo.ver >= 9 && devinfo.ver <= 12) { - /* Gfx8-12 fully supported */ - } else { + if (devinfo.ver > 12) { result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER, "Vulkan not yet supported on %s", devinfo.name); goto fail_fd; + } else if (devinfo.ver < 9) { + result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER, + "anv does not support %s; use hasvk", devinfo.name); + goto fail_fd; } struct anv_physical_device *device =