From 7c0e82d4ab9073af45a36e6c11ed2a31580cba9e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 1 Jun 2020 14:26:11 -0400 Subject: [PATCH] pan/mdg: Add quirk for missing out-of-order support Added in T760, like the other good parts of Midgard. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard_quirks.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/panfrost/midgard/midgard_quirks.h b/src/panfrost/midgard/midgard_quirks.h index 7f213cc3d69..d90d59f7677 100644 --- a/src/panfrost/midgard/midgard_quirks.h +++ b/src/panfrost/midgard/midgard_quirks.h @@ -62,6 +62,11 @@ #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: -- 2.30.2