gallium/r600: Don't let h/w do endian swap for colorformat
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 25 Feb 2016 21:09:18 +0000 (23:09 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 29 Feb 2016 10:26:27 +0000 (12:26 +0200)
commite3dfc0e095bba74aaaea4d6f994c29fdf954cbad
tree257d8471dbda5d463cf43e657cd4e407c0a3900d
parent9559071ed602e62c3619b8b8b02ac7e47a7eff8c
gallium/r600: Don't let h/w do endian swap for colorformat

Since the rework on gallium pipe formats, there is no more need to do
endian swap of the colorformat in the h/w, because the conversion between
mesa format and gallium (pipe) format takes endianess into account (see
the big #if in p_format.h).

v2: return ENDIAN_NONE only for four 8-bits components
(V_0280A0_COLOR_8_8_8_8)

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_state_common.c