turnip: do not do STATIC_ASSERT on a variable

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16670>
This commit is contained in:
Erik Faye-Lund 2022-05-23 13:36:09 +02:00 committed by Marge Bot
parent f7efa2858f
commit 08f8ccfc60
1 changed files with 2 additions and 2 deletions

View File

@ -366,8 +366,8 @@ tu_cond_exec_end(struct tu_cs *cs)
const struct fd_reg_pair regs[] = { __VA_ARGS__ }; \
unsigned count = ARRAY_SIZE(regs); \
\
STATIC_ASSERT(count > 0); \
STATIC_ASSERT(count <= 16); \
STATIC_ASSERT(ARRAY_SIZE(regs) > 0); \
STATIC_ASSERT(ARRAY_SIZE(regs) <= 16); \
\
tu_cs_emit_pkt4((cs), regs[0].reg, count); \
uint32_t *p = (cs)->cur; \