intel/jay: fix static_assert expression
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40960>
This commit is contained in:
Mauro Rossi 2026-04-11 20:12:55 +02:00 committed by Marge Bot
parent 1b029f3279
commit cc44922048

View file

@ -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);