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 <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12551>
This commit is contained in:
Boris Brezillon 2021-08-04 12:23:02 +02:00
parent fe1d33daaf
commit 0400c4ca1b
1 changed files with 1 additions and 1 deletions

View File

@ -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) \\