mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 12:50:10 +01:00
panfrost: gen_pack: Minor formatting improvement
Escape the \ in pan_pack() so the end result is actually a multi-line macro. 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/6797>
This commit is contained in:
parent
2aa5838730
commit
66f25dd210
1 changed files with 5 additions and 5 deletions
|
|
@ -131,11 +131,11 @@ __gen_unpack_padded(const uint8_t *restrict cl, uint32_t start, uint32_t end)
|
|||
return (2*odd + 1) << shift;
|
||||
}
|
||||
|
||||
#define pan_pack(dst, T, name) \
|
||||
for (struct MALI_ ## T name = { MALI_ ## T ## _header }, \
|
||||
*_loop_terminate = (void *) (dst); \
|
||||
__builtin_expect(_loop_terminate != NULL, 1); \
|
||||
({ MALI_ ## T ## _pack((uint32_t *) (dst), &name); \
|
||||
#define pan_pack(dst, T, name) \\
|
||||
for (struct MALI_ ## T name = { MALI_ ## T ## _header }, \\
|
||||
*_loop_terminate = (void *) (dst); \\
|
||||
__builtin_expect(_loop_terminate != NULL, 1); \\
|
||||
({ MALI_ ## T ## _pack((uint32_t *) (dst), &name); \\
|
||||
_loop_terminate = NULL; }))
|
||||
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue