util: Mark util_format_description() as a const function.

It will return the same table every time with no other side effects, so we
want it to be CSEed.  Saves 3.5k on my aarch64 GL drivers, almost 9k on
turnip, but weirdly increases my x86 GL driver collection by ~3k.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5728>
This commit is contained in:
Eric Anholt 2020-07-01 13:33:21 -07:00 committed by Marge Bot
parent 9300a14ffb
commit 18cb8f2322

View file

@ -426,7 +426,7 @@ struct util_format_description
const struct util_format_description *
util_format_description(enum pipe_format format);
util_format_description(enum pipe_format format) ATTRIBUTE_CONST;
/*