pan/mdg: Add quirk for missing out-of-order support
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 1 Jun 2020 18:26:11 +0000 (14:26 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 1 Jun 2020 18:38:49 +0000 (18:38 +0000)
Added in T760, like the other good parts of Midgard.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5286>

src/panfrost/midgard/midgard_quirks.h

index 7f213cc3d697b10750cd3472844cde81263a8113..d90d59f76770dc830fb711644eb3aa601b17ea10 100644 (file)
 
 #define MIDGARD_NO_UPPER_ALU (1 << 4)
 
+/* Whether (texture) out-of-order execution support is missing on early
+ * Midgards. For these just set the OoO bits to 0. */
+
+#define MIDGARD_NO_OOO (1 << 5)
+
 static inline unsigned
 midgard_get_quirks(unsigned gpu_id)
 {
@@ -70,13 +75,15 @@ midgard_get_quirks(unsigned gpu_id)
         case 0x620:
                 return MIDGARD_OLD_BLEND |
                         MIDGARD_BROKEN_LOD |
-                        MIDGARD_NO_UPPER_ALU;
+                        MIDGARD_NO_UPPER_ALU |
+                        MIDGARD_NO_OOO;
 
         case 0x720:
                 return MIDGARD_INTERPIPE_REG_ALIASING | 
                         MIDGARD_OLD_BLEND |
                         MIDGARD_BROKEN_LOD |
-                        MIDGARD_NO_UPPER_ALU;
+                        MIDGARD_NO_UPPER_ALU |
+                        MIDGARD_NO_OOO;
 
         case 0x820:
         case 0x830: