mesa/formats: don't byteswap when building array formats
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 12 Aug 2015 15:22:53 +0000 (18:22 +0300)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Aug 2015 15:28:31 +0000 (08:28 -0700)
commit5f1d5b1c7857f8680b47a7a450ee9e4530e22c6f
tree8c8712b0b3a7624d3716a7d0fda21f0af664f43a
parente3eb91af804f449005a2ff535c805eaa1d579d99
mesa/formats: don't byteswap when building array formats

Because we build here an array format, we don't need to swap the
bytes for big endian.
If it isn't an array format, the bytes will be swapped in
_mesa_format_convert.

v2: remove temp variable

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
src/mesa/main/glformats.c