How to switch from ARGB to BGRA colors?

Alex Deucher alexdeucher at gmail.com
Fri Aug 24 16:13:55 PDT 2007


Thanks!  committed.

Alex

On 8/24/07, Moore, Simon <simon.moore at teradyne.com> wrote:
> Here is the driver patch and list of issues corrected:
>
> 1.  Corrupted Hardware Cursor
> 2.  Endian issue on acceleration + White Corruption
> 3.  Enabled clocks for acceleration
>
> Simon
>
> -----Original Message-----
> From: Clemens Koller [mailto:clemens.koller at anagramm.de]
> Sent: 21 August 2007 23:08
> To: Alex Deucher
> Cc: Moore, Simon; xorg at lists.freedesktop.org
> Subject: Re: How to switch from ARGB to BGRA colors?
>
> Hi, Alex, Simone!
>
> >> Now switched to using the Xorg 501 driver.  We have seen issue with
> yellow
> >> shadowing around fonts.
>
> Seems to be the same issue over here with the sm501.
> (remember: ARGB <-> BGRA)
> It looks to me like the alpha channel is a missing blue
> (resulting in a yellowish shadow) and not transparency.
>
> >>  This looks similar to an issue we 'corrected' when
> >> using acceleration.  This was caused by the use of an int for colour
> in the
> >> acceleration functions.  We end up 0x7FFFFFxx for white instead of
> >> 0xFFFFFFxx.  I'll let you know if we get anywhere with the fonts.
> >>
> > I'll happily commit patches to the xorg 501 driver if you fix this or
> > add any other featured you feel would be useful to others.
>
> I would be also glad to help and debug that stuff on PowerPC
> if you provide me some patches / pointers / hints / ideas...
>
> Is there some documentation available how a pixel gets handed through
> the functions from a Xorg window out to the framebuffer or hardware?
>
> The PowerPC instruction set has some nice instructions like stwbrx
> (Store Word Byte Reverse Indexed) and friends which could
> save a lot of hassle reordering the color values here.
>
> Regards,
> --
> Clemens Koller
> _______________________________
> R&D Imaging Devices
> Anagramm GmbH
> Rupert-Mayer-Str. 45/1
> 81379 Muenchen
> Germany
>
> http://www.anagramm-technology.com
> Phone: +49-89-741518-50
> Fax: +49-89-741518-19
>
> Teradyne Diagnostic Solutions Limited, Reg. No. 790061
> Orion Business Park, Bird Hall Lane, Stockport, SK3 0XG, United Kingdom
>
> Teradyne Diagnostic Solutions GmbH, Reg No. HRB 7844
> Adalperostrasse 29, 85737 Ismaning, Germany
>
> Teradyne Diagnostic Solutions Inc., EIN 48-1281865
> 28970 Cabot Drive, Suite 100, Novi, MI 48377, USA
>
> Teradyne Diagnostic Solutions Belgium
> Delta Business Park, Satenrozen 1 B, 2550 Kontich, Belgium
>
>
>



More information about the xorg mailing list