From 1c2d0418c1aaa2b279b72c60fe0fa7a658bb0789 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 27 May 2020 16:26:29 -0400 Subject: panfrost: Add defines for bifrost unk1 flags Instead of open-coding. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/include/panfrost-job.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h index 177242d42a9..678349edc0d 100644 --- a/src/panfrost/include/panfrost-job.h +++ b/src/panfrost/include/panfrost-job.h @@ -426,6 +426,16 @@ enum mali_format { */ #define MALI_SUPPRESS_INF_NAN (1 << 3) +/* Flags for bifrost1.unk1 */ + +/* Shader uses less than 32 registers, partitioned as [R0, R15] U [R48, R63], + * allowing for full thread count. If clear, the full [R0, R63] register set is + * available at half thread count */ +#define MALI_BIFROST_FULL_THREAD (1 << 9) + +/* First clause type is ATEST */ +#define MALI_BIFROST_FIRST_ATEST (1 << 26) + /* The raw Midgard blend payload can either be an equation or a shader * address, depending on the context */ -- cgit v1.2.3