gallium/radeon: return correct values for BE in r600_translate_colorswap
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 24 Feb 2016 12:43:28 +0000 (14:43 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 25 Feb 2016 07:21:08 +0000 (09:21 +0200)
commit439b5b008fc7b4fd694fbb52cfcdeaec945143ad
treea4f0c93fd14d422beeebcdf6374e86b10696f051
parentff8b41b702c6ec596c0f9cae26b60649fc028383
gallium/radeon: return correct values for BE in r600_translate_colorswap

Because I changed the swizzle check, I also need to adapt the return
values for each check.

It's basically almost the same as before, we just cross between STD and
STD_REV, and cross between ALT and ALT_REV

This fixes the rgba test in gl-1.0-readpixsanity (piglit) and also
fixes tri-flat (mesa demos).

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