svga: Reuse util_format_unpack_rgba().
authorEric Anholt <eric@anholt.net>
Wed, 1 Jul 2020 23:27:38 +0000 (16:27 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Jul 2020 18:19:22 +0000 (18:19 +0000)
commitc3d05003896f9c57cffed5a126ff48f367413089
treedeea47842c389af5047f947cb2f8b055ec5d26fc
parent725b27135bd8d0e8b6597db98405a5ec63894cfd
svga: Reuse util_format_unpack_rgba().

This assumes that pipe_color_union is a vec4, but that seems safe.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5728>
src/gallium/drivers/svga/svga_pipe_clear.c