util/format_rgb9e5: Get rid of the rgb9e5 union
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 Aug 2016 16:39:00 +0000 (09:39 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 5 Aug 2016 16:06:59 +0000 (09:06 -0700)
commitcda8d9566043a75dbe0bc3eaf75c61e37b65d792
tree54e5709e9e35872351b0ae99b92a4c2bc5d4ec7c
parentf29fd7897adc920ef816840a3f4fc25dcd65228b
util/format_rgb9e5: Get rid of the rgb9e5 union

The rgb9e5 format is a packed format defined in terms of slicing up a
single 32-bit value.  The bitfields are far more confusing than simple
shifts and require that we check the endianness.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/util/format_rgb9e5.h