swrast: Fix handling of MESA_FORMAT_L8A8_SRGB for big-endian
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Tue, 16 Sep 2014 06:27:57 +0000 (16:27 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 17 Sep 2014 02:07:13 +0000 (12:07 +1000)
commitecc48f83c8359e3ef64ea40dfb6074f4a1a38dc1
tree8fa3760323441e8e1ee8881043d5f665d8da5a9e
parent3e3b1db5f77fd6ccc590dda2026376157ee88cbc
swrast: Fix handling of MESA_FORMAT_L8A8_SRGB for big-endian

Luminance is the least-significant byte of the uint16, rather than the
lowest byte in memory.  Other parts of mesa already handle this correctly
for big-endian, and swrast already handles other MESA_FORMAT_x8y8 formats
correctly.  This case was just an odd-one-out.

Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/swrast/s_texfetch_tmp.h