Xorg on Fujitsu "Lime" with MPC5200b?

Roman Fietze roman.fietze at telemotive.de
Thu Apr 15 23:53:53 EST 2010


Hello Bill,

On Thursday 15 April 2010 15:01:59 Bill Gatliff wrote:

> Are you talking about this code here?
> 
>     void
>     shadowUpdatePacked (ScreenPtr pScreen,
>                         shadowBufPtr pBuf)
>     {
>     ...
>                     while (i--)
>                         *win++ = *sha++;

Yes. I added a routine like

/* Swap frame buffer bytes in 32 bit value.  */
static __inline unsigned int
fbbits_swap32(unsigned int __bsx)
{
    return ((((__bsx) & 0xff000000) >> 8) | (((__bsx) & 0x00ff0000) << 8) |
	    (((__bsx) & 0x0000ff00) >> 8) | (((__bsx) & 0x000000ff) << 8));
}


Then I added void shadowUpdatePackedSwapped16() and
shadowUpdatePackedSwapped32() which I was using instead of the
original *Weak functions, which in turn uses the above swap routine
when copying from shadow to the device.

If you want I can post (in the ML) or mail you the files that I
changed. A diff probably won't help a lot, because I think we changed
more than that, and we are using a pretty old XFree version.


Roman

-- 
Roman Fietze                Telemotive AG Büro Mühlhausen
Breitwiesen                              73347 Mühlhausen
Tel.: +49(0)7335/18493-45        http://www.telemotive.de


More information about the Linuxppc-dev mailing list