From 1085f74239f2b81e4e17ece4b9b7a805ee8dd250 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 21 May 2020 15:49:30 -0400 Subject: panfrost: Avoid redundant shader executions with mask=0x0 Only works for a few Midgard GPUs, but hey. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/include/panfrost-quirks.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/panfrost/include/panfrost-quirks.h') diff --git a/src/panfrost/include/panfrost-quirks.h b/src/panfrost/include/panfrost-quirks.h index e45191fe11a..1d2ca775e45 100644 --- a/src/panfrost/include/panfrost-quirks.h +++ b/src/panfrost/include/panfrost-quirks.h @@ -50,6 +50,11 @@ /* What it says on the tin */ #define HAS_SWIZZLES (1 << 4) +/* Support for setting shader to NULL for masking out colour (while allowing + * Z/S updates to proceed) */ + +#define MIDGARD_SHADERLESS (1 << 5) + /* Quirk collections common to particular uarchs */ #define MIDGARD_QUIRKS (MIDGARD_BROKEN_FP16 | HAS_SWIZZLES) @@ -74,7 +79,7 @@ panfrost_get_quirks(unsigned gpu_id) case 0x750: case 0x860: case 0x880: - return MIDGARD_QUIRKS; + return MIDGARD_QUIRKS | MIDGARD_SHADERLESS; case 0x6000: /* G71 */ return BIFROST_QUIRKS | HAS_SWIZZLES; -- cgit v1.2.3