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

Obvious follow-on from !16670.

Signed-off-by: Alyssa Rosenzweig <>
Reviewed-by: Erik Faye-Lund <>
Part-of: <!16856>
49 jobs for !16856 with panfrost/static-assert in 18 minutes and 27 seconds (queued for 5 seconds)
latest merge request