util: Make all 3 fetch_rgba functions occupy the same function slot.
authorEric Anholt <eric@anholt.net>
Thu, 13 Aug 2020 16:15:16 +0000 (09:15 -0700)
committerMarge Bot <eric+marge@anholt.net>
Sun, 16 Aug 2020 21:25:14 +0000 (21:25 +0000)
commit35b22b5da0277ba12fdb45fee79bca75cc6bcf5c
treeb0b1523d6d911ceabe16862e90441b14666e14f4
parent80babbbf7ea4facc653b1dbecd3a8b1de43dabed
util: Make all 3 fetch_rgba functions occupy the same function slot.

A single format either had the float, the sint, or the uint version.
Making the dst be void * lets us store them in the same slot and not have
logic in the callers to call the right one.

-6kb on gallium drivers

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6305>
22 files changed:
src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
src/gallium/auxiliary/translate/translate_generic.c
src/gallium/drivers/llvmpipe/lp_test_format.c
src/gallium/tests/unit/translate_test.c
src/util/format/u_format.h
src/util/format/u_format_bptc.c
src/util/format/u_format_bptc.h
src/util/format/u_format_etc.c
src/util/format/u_format_etc.h
src/util/format/u_format_latc.c
src/util/format/u_format_latc.h
src/util/format/u_format_other.c
src/util/format/u_format_other.h
src/util/format/u_format_pack.py
src/util/format/u_format_rgtc.c
src/util/format/u_format_rgtc.h
src/util/format/u_format_s3tc.c
src/util/format/u_format_s3tc.h
src/util/format/u_format_table.py
src/util/format/u_format_yuv.c
src/util/format/u_format_yuv.h
src/util/tests/format/u_format_test.c