From cc4492204894c0488e96a93f51b546345ae32f88 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Sat, 11 Apr 2026 20:12:55 +0200 Subject: [PATCH] intel/jay: fix static_assert expression Fixes the following building error: FAILED: src/intel/compiler/jay/libintel_compiler_jay.a.p/jay_assign_flags.c.o ... In file included from ../src/intel/compiler/jay/jay_assign_flags.c:6: ../src/intel/compiler/jay/jay_builder.h:184:24: error: static_assert expression is not an integral constant expression static_assert(sizeof(uintptr_t) <= sizeof(uint64_t) && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. Fixes: e42e3193 ("intel: add Jay") Part-of: --- src/intel/compiler/jay/jay_builder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/jay/jay_builder.h b/src/intel/compiler/jay/jay_builder.h index e5cd7814e55..b0e401fc7a3 100644 --- a/src/intel/compiler/jay/jay_builder.h +++ b/src/intel/compiler/jay/jay_builder.h @@ -181,7 +181,7 @@ jay_collect(jay_builder *b, for (unsigned i = 1; i < nr; ++i) { if (indices[i] != (indices[0] + i)) { - static_assert(sizeof(uintptr_t) <= sizeof(uint64_t) && + static_assert(sizeof(uintptr_t) <= sizeof(uint64_t), "sorry, no Morello support"); void *dup = linear_memdup(b->shader->lin_ctx, indices, sizeof(uint32_t) * nr);