mesa: Replace the float[4] unpack code with util/format's.
authorEric Anholt <eric@anholt.net>
Thu, 7 Nov 2019 18:37:54 +0000 (10:37 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 Jan 2021 18:58:50 +0000 (18:58 +0000)
commit13ae72aaae81049acd684089a36ac270d093715b
tree59b893682dd39b80471b36e769185031f7f44f80
parent83f97cd0be0cb162a1be8dec122ff596b9ff96c7
mesa: Replace the float[4] unpack code with util/format's.

The gallium drivers lose 10-15k of binary by not having this duplicated
unpack code, but classic i965 gains 215k of binary by pulling in
u_format's pack/unpack code.  The cost to classic will go down as we drop
more of the duplicated code.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6297>
src/mesa/main/format_unpack.h
src/mesa/main/format_unpack.py
src/mesa/main/pack.c
src/mesa/main/tests/meson.build