Mesa (main): freedreno/a6xx: Make the format table const.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 5 20:44:49 UTC 2021
Module: Mesa
Branch: main
Commit: 1ce837d6f4101747954258a110612729652fdebb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ce837d6f4101747954258a110612729652fdebb
Author: Emma Anholt <emma at anholt.net>
Date: Fri Oct 1 16:45:10 2021 -0700
freedreno/a6xx: Make the format table const.
This data never changes.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13046>
---
src/freedreno/fdl/fd6_format_table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/freedreno/fdl/fd6_format_table.c b/src/freedreno/fdl/fd6_format_table.c
index 61e9c20d31b..8d72ba844d8 100644
--- a/src/freedreno/fdl/fd6_format_table.c
+++ b/src/freedreno/fdl/fd6_format_table.c
@@ -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),
More information about the mesa-commit
mailing list