r300g: only allow byteswapped formats on big endian
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 10 Feb 2017 23:01:40 +0000 (01:01 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 20 Feb 2017 23:37:02 +0000 (00:37 +0100)
commit66d1cb587ac7b24fb04f26d30e686c3991fc8885
treecf654a616ff01a57edf0343be96203f6a10cbff8
parent87687afb943d26c1c82ff88b22e1d05fc3c6ed04
r300g: only allow byteswapped formats on big endian

They cause regressions on little endian.

Fixes: 172bfdaa9e ("r300g: add support for PIPE_FORMAT_x8R8G8B8_*")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98869
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r300/r300_texture.c