mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 06:20:09 +01:00
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:
parent
200091aad0
commit
d33fe53c8d
1 changed files with 4 additions and 4 deletions
|
|
@ -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); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue