How to switch from ARGB to BGRA colors?
simon.moore at teradyne.com
Fri Aug 24 07:52:32 PDT 2007
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
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
>> 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
>> 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.
R&D Imaging Devices
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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9765 bytes
More information about the xorg