aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_quirks.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-11-19 21:21:19 -0500
committerTomeu Vizoso <[email protected]>2019-11-22 05:07:19 +0000
commit68c2c7962a98673a2c589cc88ad19791a8d47cfd (patch)
treedcbb63ec383590287b5fd28ac75895787196c7ea /src/panfrost/midgard/midgard_quirks.h
parentd32d4acf681ba685e770f409b81d34b4ec9f8a62 (diff)
pan/midgard: Describe quirk MIDGARD_BROKEN_LOD
Corresponds to errata #10471, applies to T6xx and T720. Fixed in T760. Signed-off-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_quirks.h')
-rw-r--r--src/panfrost/midgard/midgard_quirks.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/panfrost/midgard/midgard_quirks.h b/src/panfrost/midgard/midgard_quirks.h
index d076605a3db..359d45dbdde 100644
--- a/src/panfrost/midgard/midgard_quirks.h
+++ b/src/panfrost/midgard/midgard_quirks.h
@@ -48,17 +48,28 @@
#define MIDGARD_OLD_BLEND (1 << 2)
+/* Errata causing the LOD clamps and bias in the sampler descriptor to be
+ * ignored. This errata affects the command stream but uses a compiler
+ * workaround (applying the clamps/bias manually in the shader. Corresponds in
+ * BASE_HW_ISSUE_10471 in kbase, described as "TEXGRD doesn't honor Sampler
+ * Descriptor LOD clamps nor bias". (I'm assuming TEXGRD is what we call
+ * textureLod) */
+
+#define MIDGARD_BROKEN_LOD (1 << 3)
+
static inline unsigned
midgard_get_quirks(unsigned gpu_id)
{
switch (gpu_id) {
case 0x600:
case 0x620:
- return MIDGARD_OLD_BLEND;
+ return MIDGARD_OLD_BLEND |
+ MIDGARD_BROKEN_LOD;
case 0x720:
return MIDGARD_INTERPIPE_REG_ALIASING |
- MIDGARD_OLD_BLEND;
+ MIDGARD_OLD_BLEND |
+ MIDGARD_BROKEN_LOD;
case 0x820:
case 0x830: