util: Mark util_format_description() as a const function.
authorEric Anholt <eric@anholt.net>
Wed, 1 Jul 2020 20:33:21 +0000 (13:33 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Jul 2020 18:19:22 +0000 (18:19 +0000)
commit18cb8f23222422c7fb9764362e659d15ec0b64eb
treea831ce086c8d42686d13969b2c14fe299dacbef3
parent9300a14ffbac490906f62a638f9d8d6546298bfc
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>
src/util/format/u_format.h