panfrost: GPUs newer than G-71 don't have swizzles...
[mesa.git] / src / panfrost / include / panfrost-quirks.h
index 8b8aa0812cd620d695cf0ad004686e0a93c6d020..e45191fe11aaf8872687ba900701280401489107 100644 (file)
 
 #define MIDGARD_SFBD (1 << 1)
 
+/* Whether fp16 is broken in the compiler. Hopefully this quirk will go away
+ * over time */
+
+#define MIDGARD_BROKEN_FP16 (1 << 2)
+
+/* What it says on the tin */
+#define IS_BIFROST (1 << 3)
+
+/* What it says on the tin */
+#define HAS_SWIZZLES (1 << 4)
+
 /* Quirk collections common to particular uarchs */
 
-#define MIDGARD_QUIRKS (0)
+#define MIDGARD_QUIRKS (MIDGARD_BROKEN_FP16 | HAS_SWIZZLES)
 
-#define BIFROST_QUIRKS (0)
+#define BIFROST_QUIRKS (IS_BIFROST)
 
 static inline unsigned
 panfrost_get_quirks(unsigned gpu_id)
@@ -65,6 +76,9 @@ panfrost_get_quirks(unsigned gpu_id)
         case 0x880:
                 return MIDGARD_QUIRKS;
 
+        case 0x6000: /* G71 */
+                return BIFROST_QUIRKS | HAS_SWIZZLES;
+
         case 0x7093: /* G31 */
         case 0x7212: /* G52 */
                 return BIFROST_QUIRKS;