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:
parent
fe1d33daaf
commit
0400c4ca1b
|
@ -179,7 +179,7 @@ __gen_unpack_padded(const uint8_t *restrict cl, uint32_t start, uint32_t end)
|
||||||
#define pan_merge(packed1, packed2, type) \
|
#define pan_merge(packed1, packed2, type) \
|
||||||
do { \
|
do { \
|
||||||
for (unsigned i = 0; i < (PREFIX2(type, LENGTH) / 4); ++i) \
|
for (unsigned i = 0; i < (PREFIX2(type, LENGTH) / 4); ++i) \
|
||||||
packed1.opaque[i] |= packed2.opaque[i]; \
|
(packed1).opaque[i] |= (packed2).opaque[i]; \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
#define mali_pixel_format_print_v6(fp, format) \\
|
#define mali_pixel_format_print_v6(fp, format) \\
|
||||||
|
|
Loading…
Reference in New Issue