mesa: Replace _mesa_pack_ubyte_rgba_row() with pack_ubyte_rgba_8unorm().
authorEric Anholt <eric@anholt.net>
Mon, 19 Apr 2021 22:17:58 +0000 (15:17 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 21 Apr 2021 19:59:10 +0000 (19:59 +0000)
commit839af6545bf2f9a7406725e905ffa702731ddc10
tree46b1ebfd9b00aa4a26aabc40ec195b51424e70d1
parent1a36b11a66ac32854adc1a47dd1b587d74ab01e7
mesa: Replace _mesa_pack_ubyte_rgba_row() with pack_ubyte_rgba_8unorm().

The major thing that the codegen had was support for expanding integers
from byte-per-channel to the target format's channel size.  However, the
format_utils.c caller never did that for integers, and swrast doesn't have
support for integers, so that appears to be dead code.  With this done,
format_pack.py goes away entirely.

I slightly changed the prototype of _mesa_pack_ubyte_rgba_row() to match
up with the new function, which involved (mostly) dropping some manual
casts from the callers to make their data match the old prototype.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10336>
src/mesa/Android.gen.mk
src/mesa/Makefile.sources
src/mesa/main/format_pack.h
src/mesa/main/format_pack.py [deleted file]
src/mesa/main/format_utils.c
src/mesa/main/tests/mesa_formats.cpp
src/mesa/meson.build
src/mesa/swrast/s_span.c