st/mesa: Fix handling of LA and RG formats for big-endian
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Tue, 22 Jul 2014 09:51:18 +0000 (10:51 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 17 Sep 2014 03:20:08 +0000 (13:20 +1000)
commitccdbcd9586fac41bf209fd40d7512d8192c5dad0
tree8dcd4d138ee242cbde17ea37a681b126c239e78a
parentbe6ef203aafd52fce532c8dae47be75f1d5252a0
st/mesa: Fix handling of LA and RG formats for big-endian

MESA_FORMAT_LnAn puts the luminance in the least significant part of
the containing integer, which is equivalent to PIPE_FORMAT_LAnn.
PIPE_FORMAT_LnAn puts the luminance first in memory.

This patch fixes up the mesa<->gallium mapping accordingly.

Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_format.c