libagx: improve static assert message

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
Alyssa Rosenzweig 2024-02-28 13:23:33 -04:00 committed by Marge Bot
parent b01ccc13e9
commit 2e28998017

View file

@ -11,7 +11,7 @@
#include <stdint.h>
#include "util/macros.h"
#define GLOBAL(type_) uint64_t
#define AGX_STATIC_ASSERT(_COND) static_assert(_COND, "OpenCL assertion")
#define AGX_STATIC_ASSERT(_COND) static_assert(_COND, #_COND)
#else
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
#define PACKED __attribute__((packed, aligned(4)))