freedreno/a6xx: Make the format table const.

This data never changes.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13046>
This commit is contained in:
Emma Anholt 2021-10-01 16:45:10 -07:00 committed by Marge Bot
parent 4d6f5cd572
commit 1ce837d6f4

View File

@ -58,7 +58,7 @@ struct fd6_format {
#define V__(pipe, fmt, swapfmt) FMT(pipe, fmt, NONE, NONE, swapfmt)
/* clang-format off */
static struct fd6_format formats[PIPE_FORMAT_COUNT] = {
static const struct fd6_format formats[PIPE_FORMAT_COUNT] = {
/* 8-bit */
VTC(R8_UNORM, 8_UNORM, WZYX),
VTC(R8_SNORM, 8_SNORM, WZYX),