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

Christian Zigotzky chzigotzky at xenosoft.de
Fri Mar 7 02:26:22 PST 2014


Hello Michel,

I'm sorry. I'll send your answer in another mail.

Rgds,
Christian

On 07.03.2014, you wrote:

> On Fre, 2014-03-07 at 08:54 +0100, Christian Zigotzky wrote:
>> 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.
>> 
>> Screenshots: 
>>
>>
http://forum.hyperion-entertainment.biz/viewtopic.php?f=35&t=2137&p=26037#p26037
>
>> 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?
>
> You sent this exact same e-mail to me in private, and I explained to you
> why this is not a proper solution, and how you could go about finding a
> proper solution. Why did you just re-send your e-mail here unchanged,
> without any mention of the additional information I gave you?
>
>
Regards



More information about the mesa-dev mailing list