pan/genxml: Add missing parenthesis on pan_cast_and_pack macros
We were missing parenthesis on pan_cast_and_pack macros causing various
issues.
Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Fixes: 410e5a36ec ("pan/genxml: Rework gen_pack.py to support OpenCL")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36261>
This commit is contained in:
committed by
Marge Bot
parent
4df3e56fe2
commit
455b93601a
@@ -121,10 +121,10 @@ __gen_padded(uint32_t v, uint32_t start, uint32_t end)
|
||||
* pointer address space */
|
||||
#ifndef __OPENCL_VERSION__
|
||||
#define pan_cast_and_pack(dst, T, name) \
|
||||
pan_pack((PREFIX2(T, PACKED_T) *)dst, T, name)
|
||||
pan_pack((PREFIX2(T, PACKED_T) *)(dst), T, name)
|
||||
|
||||
#define pan_cast_and_pack_nodefaults(dst, T, name) \
|
||||
pan_pack_nodefaults((PREFIX2(T, PACKED_T) *)dst, T, name)
|
||||
pan_pack_nodefaults((PREFIX2(T, PACKED_T) *)(dst), T, name)
|
||||
|
||||
#define pan_cast_and_unpack(src, T, name) \
|
||||
pan_unpack((const PREFIX2(T, PACKED_T) *)(src), T, name)
|
||||
|
||||
Reference in New Issue
Block a user