diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-24 13:53:18 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-31 01:12:26 +0000 |
commit | 97029c773e8c62378b2dae76ac813a8a8b9232b8 (patch) | |
tree | 03186fee6f5d09a01866a7da300eb066f30217bb /src/panfrost/include | |
parent | bf1929e4792ab5d6416b8a707bf2a8c2e694bc62 (diff) |
panfrost: Stub out G31/G52 quirks
There are none so far, but we'll need quirks accessible for Bifrost
specific details in the future, and in the mean time we need to handle
the cases somehow to avoid the unreachable(..)
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4382>
Diffstat (limited to 'src/panfrost/include')
-rw-r--r-- | src/panfrost/include/panfrost-quirks.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/panfrost/include/panfrost-quirks.h b/src/panfrost/include/panfrost-quirks.h index 83c7c84b020..8b8aa0812cd 100644 --- a/src/panfrost/include/panfrost-quirks.h +++ b/src/panfrost/include/panfrost-quirks.h @@ -39,28 +39,38 @@ #define MIDGARD_SFBD (1 << 1) +/* Quirk collections common to particular uarchs */ + +#define MIDGARD_QUIRKS (0) + +#define BIFROST_QUIRKS (0) + static inline unsigned panfrost_get_quirks(unsigned gpu_id) { switch (gpu_id) { case 0x600: case 0x620: - return MIDGARD_SFBD; + return MIDGARD_QUIRKS | MIDGARD_SFBD; case 0x720: - return MIDGARD_SFBD | MIDGARD_NO_HIER_TILING; + return MIDGARD_QUIRKS | MIDGARD_SFBD | MIDGARD_NO_HIER_TILING; case 0x820: case 0x830: - return MIDGARD_NO_HIER_TILING; + return MIDGARD_QUIRKS | MIDGARD_NO_HIER_TILING; case 0x750: case 0x860: case 0x880: - return 0; + return MIDGARD_QUIRKS; + + case 0x7093: /* G31 */ + case 0x7212: /* G52 */ + return BIFROST_QUIRKS; default: - unreachable("Invalid Midgard GPU ID"); + unreachable("Unknown Panfrost GPU ID"); } } |