anv: Fail to create a device on ver < 9

These are now only supported by hasvk.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18208>
This commit is contained in:
Kenneth Graunke
2022-08-30 14:54:02 -07:00
committed by Marge Bot
parent a659819f79
commit 8dcca7f47f
+5 -3
View File
@@ -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 =