panfrost: Use C11 static_assert for enums
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 3 Jun 2022 18:33:58 +0000 (14:33 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 4 Jun 2022 12:19:54 +0000 (12:19 +0000)
commit2ee6206751bf456e337d5144e4a697e69d8a04dc
tree5bfc09ceff863b24599fe1d38f588768491c4a2a
parent20a57f8a05bbd31b6040b8e6da0e716cf726842c
panfrost: Use C11 static_assert for enums

Rather than asserting everything in an unused function, just do it in global
context with C11 static_asserts. This is a bit neater now that we depend on C11
projectwide.

Obvious follow-on from !16670.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16856>
src/gallium/drivers/panfrost/pan_cmdstream.c