summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2017-02-11 01:01:40 +0200
committerEmil Velikov <emil.l.velikov@gmail.com>2017-03-15 18:02:31 +0000
commit0d8d249f082f8e76cfeac2c294c336aaacd59d49 (patch)
treea31486d371d45325f9780553364890c1a3693ac3 /src
parentc0c964489b129d71f23052c6fa4c858b9bc16b32 (diff)
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> (cherry picked from commit 66d1cb587ac7b24fb04f26d30e686c3991fc8885)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index fbac07a79a4..929c3fe6c12 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -47,6 +47,11 @@
*/
static enum pipe_format r300_unbyteswap_array_format(enum pipe_format format)
{
+ /* FIXME: Disabled on little endian because of a reported regression:
+ * https://bugs.freedesktop.org/show_bug.cgi?id=98869 */
+ if (PIPE_ENDIAN_NATIVE != PIPE_ENDIAN_BIG)
+ return format;
+
/* Only BGRA 8888 array formats are supported for simplicity of
* the implementation. */
switch (format) {