libagx: use real PACKED macro

hopefully end these alignment bugs for good

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
Alyssa Rosenzweig
2024-01-29 16:02:05 -04:00
committed by Marge Bot
parent fc929d9318
commit aaa609f030

View File

@@ -14,7 +14,7 @@
#define AGX_STATIC_ASSERT(_COND) static_assert(_COND, "OpenCL assertion")
#else
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
#define PACKED
#define PACKED __attribute__((packed, aligned(4)))
#define GLOBAL(type_) global type_ *
typedef ulong uint64_t;