pan/bi: Fix bi quirks detection
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 6 Feb 2021 02:51:37 +0000 (21:51 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 8 Feb 2021 13:55:12 +0000 (13:55 +0000)
There is no Bifrost v8...

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Acked-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8894>

src/panfrost/bifrost/bi_quirks.h

index 380914d..f21a99b 100644 (file)
 static inline unsigned
 bifrost_get_quirks(unsigned product_id)
 {
-        switch (product_id >> 12) {
-        case 6: /* 1st gen */
+        switch (product_id >> 8) {
+        case 0x62:
                 return BIFROST_NO_PRELOAD;
-
-        case 7: /* 2nd gen */
-        case 8: /* 3rd gen */
+        case 0x70:
+        case 0x72:
                 return 0;
-
         default:
                 unreachable("Unknown Bifrost GPU ID");
         }