From: Alyssa Rosenzweig Date: Fri, 27 Sep 2019 21:07:10 +0000 (-0400) Subject: pan/midgard: Add missing parans in SWIZZLE definition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc0544a0f564953d454cd41845333122015ecccd;p=mesa.git pan/midgard: Add missing parans in SWIZZLE definition Signed-off-by: Alyssa Rosenzweig --- 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