anv: Print warning that Xe2 is not supported rather than failing

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25411>
This commit is contained in:
Jordan Justen 2022-09-08 01:37:04 -07:00 committed by Marge Bot
parent 30ba269070
commit b5eb96384c

View file

@ -1259,7 +1259,9 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
goto fail_fd;
}
if (devinfo.ver > 12) {
if (devinfo.ver == 20) {
mesa_logw("Vulkan not yet supported on %s", devinfo.name);
} else if (devinfo.ver > 12) {
result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
"Vulkan not yet supported on %s", devinfo.name);
goto fail_fd;