Mesa (main): panvk: Return VK_ERROR_INCOMPATIBLE_DRIVER for Midgard

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 13 14:57:33 UTC 2022


Module: Mesa
Branch: main
Commit: 79b88852c85bdb122d73464bc0f0f907f3639214
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=79b88852c85bdb122d73464bc0f0f907f3639214

Author: Denis Pauk <pauk.denis at gmail.com>
Date:   Fri Jun 10 23:04:10 2022 +0300

panvk: Return VK_ERROR_INCOMPATIBLE_DRIVER for Midgard

Midgard is unsupported after merge of !16915

Signed-off-by: Denis Pauk <pauk.denis at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16991>

---

 src/panfrost/vulkan/panvk_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panfrost/vulkan/panvk_device.c b/src/panfrost/vulkan/panvk_device.c
index 6c489921b97..1f79558e1ad 100644
--- a/src/panfrost/vulkan/panvk_device.c
+++ b/src/panfrost/vulkan/panvk_device.c
@@ -327,7 +327,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) {
       result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
                          "%s not supported",
                          device->pdev.model->name);



More information about the mesa-commit mailing list