diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-21 15:49:30 -0400 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-05-21 15:49:47 -0400 |
commit | 1085f74239f2b81e4e17ece4b9b7a805ee8dd250 (patch) | |
tree | c15ac6ee8aed012d2c6127612b0955e9fdf5458f /src/panfrost/include/panfrost-quirks.h | |
parent | 3e4e849e6a9633702e26ee16b4a594361e42013f (diff) |
panfrost: Avoid redundant shader executions with mask=0x0
Only works for a few Midgard GPUs, but hey.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
Diffstat (limited to 'src/panfrost/include/panfrost-quirks.h')
-rw-r--r-- | src/panfrost/include/panfrost-quirks.h | 7 |
1 files changed, 6 insertions, 1 deletions
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; |