mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 21:50:26 +01:00
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> (cherry picked from commit455b93601a)
This commit is contained in:
parent
199f77d7a3
commit
53d5655bc1
2 changed files with 3 additions and 3 deletions
|
|
@ -4464,7 +4464,7 @@
|
|||
"description": "pan/genxml: Add missing parenthesis on pan_cast_and_pack macros",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "410e5a36ec88b9e7702a7149554a1422debab535",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue