st/mesa: Fix handling of 8888 SNORM and SRGB formats for big-endian
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Tue, 22 Jul 2014 10:02:11 +0000 (11:02 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 17 Sep 2014 03:20:08 +0000 (13:20 +1000)
commit2e49559c7727370839c28992c304f843db77c31a
treeaf6fc906b842ecbd88b0eea1442e36e0f3755e5c
parentccdbcd9586fac41bf209fd40d7512d8192c5dad0
st/mesa: Fix handling of 8888 SNORM and SRGB formats for big-endian

MESA_FORMAT_x8y8z8w8 puts the x channel in the least significant part of
the containing 32-bit integer, which is equivalent to PIPE_FORMAT_xyzw8888.
PIPE_FORMAT_x8y8z8w8 puts the x channel first in memory.

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

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