util: Make helper functions for pack/unpacking pixel rows.
authorEric Anholt <eric@anholt.net>
Fri, 8 Nov 2019 20:30:02 +0000 (12:30 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 4 Feb 2020 19:02:59 +0000 (19:02 +0000)
commitc574cda3c6a3f880f99e4e22967fc82e34609942
tree4624753a3a745e978b1942c532982ded0e189603
parent333c9d5bb054d5ac5518e830b535e8a4f3f80187
util: Make helper functions for pack/unpacking pixel rows.

Almost all users of the unpack functions don't have strides to plug in
(and many are only doing one pixel!), and this will help simplify
them.

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_surface.c
src/gallium/drivers/iris/iris_clear.c
src/gallium/drivers/nouveau/nv30/nv30_vbo.c
src/gallium/drivers/nouveau/nv50/nv50_surface.c
src/gallium/drivers/nouveau/nv50/nv50_vbo.c
src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
src/gallium/drivers/r600/r600_texture.c
src/gallium/drivers/radeonsi/si_clear.c
src/gallium/drivers/svga/svga_pipe_clear.c
src/util/format/u_format.c
src/util/format/u_format.h