freedreno: do not do STATIC_ASSERT on variables

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 14:49:06 +02:00 committed by Marge Bot
parent 200091aad0
commit d33fe53c8d

View file

@ -74,8 +74,8 @@ struct fd_reg_pair {
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); \
\
BEGIN_RING(ring, count + 1); \
uint32_t *p = ring->cur; \
@ -105,7 +105,7 @@ struct fd_reg_pair {
const struct fd_reg_pair regs[] = {__VA_ARGS__}; \
unsigned count = ARRAY_SIZE(regs); \
\
STATIC_ASSERT(count <= 16); \
STATIC_ASSERT(ARRAY_SIZE(regs) <= 16); \
\
BEGIN_RING(ring, count + 1); \
uint32_t *p = ring->cur; \
@ -139,7 +139,7 @@ struct fd_reg_pair {
const struct fd_reg_pair regs[] = {__VA_ARGS__}; \
unsigned count = ARRAY_SIZE(regs); \
\
STATIC_ASSERT(count <= 16); \
STATIC_ASSERT(ARRAY_SIZE(regs) <= 16); \
count += sizedwords; \
\
BEGIN_RING(ring, count + 1); \