gallium: Add and use a helper for packing uc from a color_union.
authorEric Anholt <eric@anholt.net>
Fri, 8 Nov 2019 22:49:44 +0000 (14:49 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 4 Feb 2020 19:02:59 +0000 (19:02 +0000)
commitab081970e07d97c4218a68341d8534693d27e474
tree39f28c58c4474e40ec007485b52bccdb6a90da6b
parentb2a2cf492decf35e1e2c622e3c45e98333ec15d7
gallium: Add and use a helper for packing uc from a color_union.

The same pattern kept coming up, and we don't need to hit
util_format_write_4* to do it when we have util_format_pack_rgba().

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744>
src/gallium/auxiliary/util/u_pack_color.h
src/gallium/auxiliary/util/u_surface.c
src/gallium/drivers/freedreno/a5xx/fd5_draw.c
src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/r600/r600_texture.c
src/gallium/drivers/radeonsi/si_clear.c