From 0400c4ca1b77a291f53bf9d7085bd602ea6672c9 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 4 Aug 2021 12:23:02 +0200 Subject: [PATCH] pan/gen_pack: Add parens around packed1/2 vars in pan_merge() This way we can pass *desc instead of (*desc). Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/lib/gen_pack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/gen_pack.py b/src/panfrost/lib/gen_pack.py index c9b1edddd2d..6f97a1b55ad 100644 --- a/src/panfrost/lib/gen_pack.py +++ b/src/panfrost/lib/gen_pack.py @@ -179,7 +179,7 @@ __gen_unpack_padded(const uint8_t *restrict cl, uint32_t start, uint32_t end) #define pan_merge(packed1, packed2, type) \ do { \ for (unsigned i = 0; i < (PREFIX2(type, LENGTH) / 4); ++i) \ - packed1.opaque[i] |= packed2.opaque[i]; \ + (packed1).opaque[i] |= (packed2).opaque[i]; \ } while(0) #define mali_pixel_format_print_v6(fp, format) \\