util: Mark the format description getter functions as const.
authorEric Anholt <eric@anholt.net>
Thu, 13 Aug 2020 02:45:55 +0000 (19:45 -0700)
committerMarge Bot <eric+marge@anholt.net>
Sun, 16 Aug 2020 21:25:14 +0000 (21:25 +0000)
commit9cc84369b70781e5e0984c7950e4d084abce8050
tree7c251e30520c0181d1217e5ff338aff8b1b04cdf
parent35b22b5da0277ba12fdb45fee79bca75cc6bcf5c
util: Mark the format description getter functions as const.

This lets the compiler CSE calls to them on the same format.  This is
particularly relevant for the description table lookup calls, which other
inlines might do internally.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6305>
src/util/format/u_format.h