panvk: catch unsupported arch in the panvk_physical_device_init
authorDavid Heidelberg <david.heidelberg@collabora.com>
Tue, 29 Aug 2023 12:02:03 +0000 (14:02 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 29 Aug 2023 13:17:44 +0000 (13:17 +0000)
Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24201>

src/panfrost/vulkan/panvk_device.c

index 34070d6..f242e79 100644 (file)
@@ -449,7 +449,7 @@ panvk_physical_device_init(struct panvk_physical_device *device,
    panfrost_open_device(NULL, fd, &device->pdev);
    fd = -1;
 
-   if (device->pdev.arch <= 5) {
+   if (device->pdev.arch <= 5 || device->pdev.arch >= 8) {
       result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
                          "%s not supported", device->pdev.model->name);
       goto fail;