util: Explicitly call the unpack functions from inside bptc pack/unpack.
authorEric Anholt <eric@anholt.net>
Thu, 13 Aug 2020 20:23:35 +0000 (13:23 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 Aug 2020 05:03:16 +0000 (05:03 +0000)
commit8d38b25788c9f9bcc1c8bf2a422162328ac663d1
tree28a056424e4fbf2f69669f7cff605834e79bac33
parentedf0aeb3cd264a431cd9d6bf7a758fe37bfbef04
util: Explicitly call the unpack functions from inside bptc pack/unpack.

We were calling the table-based unpack functions from inside the pack and
unpack table's methods, so if anything included these pack functions (such
as a call to a table-based pack function), you'd pull in all of unpack as
well.

By calling them explicitly, we save some overhead in these functions
(switch statement, address math on the zero x,y arguments) anyway.

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6307>
src/util/SConscript
src/util/format/u_format_bptc.c
src/util/format/u_format_pack.py