[Mesa-dev] Wrong colors in 3D apps on big-endian systems

Christian Zigotzky chzigotzky at xenosoft.de
Thu Mar 6 23:54:15 PST 2014

Hi List,

There are any problems with false colors since Mesa 9.2 on big-endian 
(PowerPC) systems (Screenshot: 
https://bugs.freedesktop.org/attachment.cgi?id=91566). I've created the 
bug report 72877 (https://bugs.freedesktop.org/show_bug.cgi?id=72877). 
I've figured out that the following line in 
"src/gallium/drivers/r600/evergreen_state.c" the problem is.

case V_028C70_COLOR_8_8_8_8:

When I comment out this case then the colors are to 99% right. But if I 
comment out the following lines then all colors are correct.

     /* 32-bit buffers. */
             //case PIPE_FORMAT_A8B8G8R8_SRGB:
             //case PIPE_FORMAT_A8B8G8R8_UNORM:
             case PIPE_FORMAT_A8R8G8B8_UNORM:
             //case PIPE_FORMAT_B8G8R8A8_SRGB:
             //case PIPE_FORMAT_B8G8R8A8_UNORM:
             //case PIPE_FORMAT_B8G8R8X8_UNORM:
             //case PIPE_FORMAT_R8G8B8A8_SNORM:
             //case PIPE_FORMAT_R8G8B8A8_UNORM:
             //case PIPE_FORMAT_R8G8B8X8_UNORM:
             //case PIPE_FORMAT_R8G8B8X8_SNORM:
             //case PIPE_FORMAT_R8G8B8X8_SRGB:
             //case PIPE_FORMAT_R8G8B8X8_UINT:
             //case PIPE_FORMAT_R8G8B8X8_SINT:
             //case PIPE_FORMAT_R8SG8SB8UX8U_NORM:
             //case PIPE_FORMAT_X8B8G8R8_UNORM:
             //case PIPE_FORMAT_X8R8G8B8_UNORM:
             //case PIPE_FORMAT_R8G8B8_UNORM:
             //case PIPE_FORMAT_R8G8B8A8_SINT:
             //case PIPE_FORMAT_R8G8B8A8_UINT:
                     return V_028C70_COLOR_8_8_8_8;

Neverball, Glxgears, and SuperTuxKart works fine with the right colors.


The patched Mesa 10.0.3 and 10.1.0 works well on Debian Sid and on 
Lubuntu 14.04.

Could you patch the official Mesa, please?



More information about the mesa-dev mailing list