summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-09-27 17:07:10 -0400
committerAlyssa Rosenzweig <[email protected]>2019-09-30 08:40:11 -0400
commitcc0544a0f564953d454cd41845333122015ecccd (patch)
tree74ec70dd92f81be981667aa0ea370ed623bc71a4 /src/panfrost/midgard
parentb3c1f601aac2390e60b5fe184227feae193f3de9 (diff)
pan/midgard: Add missing parans in SWIZZLE definition
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/helpers.h b/src/panfrost/midgard/helpers.h
index ac58fd50327..343fad0fea8 100644
--- a/src/panfrost/midgard/helpers.h
+++ b/src/panfrost/midgard/helpers.h
@@ -189,7 +189,7 @@ quadword_size(int tag)
/* Swizzle support */
-#define SWIZZLE(A, B, C, D) ((D << 6) | (C << 4) | (B << 2) | (A << 0))
+#define SWIZZLE(A, B, C, D) (((D) << 6) | ((C) << 4) | ((B) << 2) | ((A) << 0))
#define SWIZZLE_FROM_ARRAY(r) SWIZZLE(r[0], r[1], r[2], r[3])
#define COMPONENT_X 0x0
#define COMPONENT_Y 0x1