r600g: port color buffer format conversion from radeonsi
authorMarek Olšák <marek.olsak@amd.com>
Sun, 23 Feb 2014 17:46:43 +0000 (18:46 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Mar 2014 11:26:16 +0000 (12:26 +0100)
commitac35ded4733883037316d556af596524e5e02535
treeb1bf29343325b7f2f4fd7cc8487d278e98b248d5
parentdff3eccd158d648482bb47118ef5d57a9186e5a4
r600g: port color buffer format conversion from radeonsi

r600_translate_colorformat is rewritten to look like radeonsi.
r600_translate_colorswap is shared with radeonsi.
r600_colorformat_endian_swap is consolidated.

This adds some formats which were missing. Future "plain" formats will
automatically be supported.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_state_common.c