aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-06-10 15:35:41 -0400
committerMarge Bot <[email protected]>2020-06-12 14:45:50 +0000
commit24c3b95925389ed355213fcb12acc9baa088aa87 (patch)
treea3a0140a5acb99ca3877ed03bbe390e777f97414 /src/panfrost
parent7ac1bb047aa96805199b0d85ee49367f6a2b0531 (diff)
panfrost: Calculate varying size by format
Will enable <16-byte varyings. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5423>
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/include/panfrost-job.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h
index 0829b9bfb57..d6f1fc861da 100644
--- a/src/panfrost/include/panfrost-job.h
+++ b/src/panfrost/include/panfrost-job.h
@@ -251,6 +251,7 @@ struct mali_channel_swizzle {
* for Bifrost framebuffer output.
*/
#define MALI_FORMAT_SPECIAL2 (7 << 5)
+#define MALI_EXTRACT_TYPE(fmt) ((fmt) & 0xe0)
/* If the high 3 bits are 3 to 6 these two bits say how many components
* there are.
@@ -274,6 +275,7 @@ struct mali_channel_swizzle {
* MALI_FORMAT_UNORM, it means a 32-bit float.
*/
#define MALI_CHANNEL_FLOAT 7
+#define MALI_EXTRACT_BITS(fmt) (fmt & 0x7)
enum mali_format {
MALI_ETC2_RGB8 = MALI_FORMAT_COMPRESSED | 0x1,