turnip: Fix GCC compiles.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 12 Mar 2019 23:07:02 +0000 (00:07 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 16 Mar 2019 14:38:51 +0000 (14:38 +0000)
commite1161d2ea7b47fc8d13114216ed02ac00b6caeba
tree2ee96322dc258a0d578a1768c0f1a9a892f9eec3
parentd3386e73c5976ecec84821d17f05c2fd4b823880
turnip: Fix GCC compiles.

Apparently GCC does not consider static const variables to be
integer constants, and hence the array size and the static assert
result in compile failures.

Fixes: 4b9f967cd1a "turnip: add a more complete format table"
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>
src/freedreno/vulkan/tu_formats.c