From aaa609f03032c5761bca535bcd1a16e7dd78f3e2 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 29 Jan 2024 16:02:05 -0400 Subject: [PATCH] libagx: use real PACKED macro hopefully end these alignment bugs for good Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/shaders/libagx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/lib/shaders/libagx.h b/src/asahi/lib/shaders/libagx.h index 30f5e45d272..5f0f79fcd1b 100644 --- a/src/asahi/lib/shaders/libagx.h +++ b/src/asahi/lib/shaders/libagx.h @@ -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;