r600g: use do_endian_swap in color swapping functions
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 21 Apr 2016 12:51:40 +0000 (15:51 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 26 Apr 2016 08:00:16 +0000 (11:00 +0300)
commitc86c761343885b157b122416b0e3d3641fc1061c
tree4408b6caaa836a3945ac8d0b77c81fbf30d18bf3
parent686ad477bdfc698b8ff7ccfba6225b2c1c68214a
r600g: use do_endian_swap in color swapping functions

For some formats we need to take "do_endian_swap" into account when
configuring swapping for color buffers.

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
src/gallium/drivers/radeon/r600_texture.c