util/format: expose generated format packing functions through a header
authorJonathan Marek <jonathan@marek.ca>
Wed, 5 Aug 2020 03:32:11 +0000 (23:32 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 13 Aug 2020 16:54:06 +0000 (16:54 +0000)
commit84ed2d0980bfa98898606c67e7441bc83da6100e
tree850f65104ae7cfee4ddce9756fd0849213cd3f2b
parenta322924d9cf4557af5fb11c95c1646f110a21aba
util/format: expose generated format packing functions through a header

Some of the generated functions can be useful without going through the
format table (filling border color struct in turnip). By not calling these
functions through the format table, we should eventually be able to garbage
collect the unused packing functions, and also allows LTOs to happen.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6093>
src/util/Makefile.sources
src/util/SConscript
src/util/format/meson.build
src/util/format/u_format_pack.py
src/util/format/u_format_table.py