panvk: catch unsupported arch in the panvk_physical_device_init
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>
This commit is contained in:

committed by
Marge Bot

parent
deb17db38e
commit
78ec03b3ba
@@ -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;
|
||||
|
Reference in New Issue
Block a user