mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40960>
This commit is contained in:
parent
1b029f3279
commit
cc44922048
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue