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:
committed by
Marge Bot
parent
a659819f79
commit
8dcca7f47f
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user