gallium: Drop the useless union wrapper on pack/unpack.
authorEric Anholt <eric@anholt.net>
Thu, 15 Aug 2019 16:48:53 +0000 (09:48 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 28 Aug 2019 17:39:36 +0000 (10:39 -0700)
commit309ef968cde48d6d0cadf2da7c66a28519cbabe1
tree57b794914829119b12a6809eeba8bf35257f62f0
parent174240c5e49732dd5ec8b9d5fbd10c3e35babbc6
gallium: Drop the useless union wrapper on pack/unpack.

Nothing accessed the .value field, just the .chan.  Unwrap all the
code from the union, for clarity (and 13k less generated code).

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_format_pack.py