From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.210.172]) by ozlabs.org (Postfix) with ESMTP id 48ED5B7080 for ; Fri, 16 Apr 2010 02:07:06 +1000 (EST) Received: by yxe2 with SMTP id 2so1010453yxe.2 for ; Thu, 15 Apr 2010 09:07:04 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <4BC682DC.1050200@billgatliff.com> <201004150921.47268.roman.fietze@telemotive.de> <4BC70E47.9010408@billgatliff.com> <201004151553.53426.roman.fietze@telemotive.de> Date: Thu, 15 Apr 2010 11:07:03 -0500 Message-ID: Subject: Re: Xorg on Fujitsu "Lime" with MPC5200b? From: Bill Gatliff To: Roman Fietze Content-Type: multipart/alternative; boundary=0016e6475b0282f3af048448aff0 Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0016e6475b0282f3af048448aff0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I would love it if you posted your code! Thanks!! b.g. On Apr 15, 2010 8:53 AM, "Roman Fietze" wrote: Hello Bill, On Thursday 15 April 2010 15:01:59 Bill Gatliff wrote: > Are you talking about this code here? > ... 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 --=20 Roman Fietze Telemotive AG B=FCro M=FChlhausen Breitwiesen ... --0016e6475b0282f3af048448aff0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I would love it if you posted your code! Thanks!!

b.g.

On Apr 15, 2010 8:53 AM, "Roman Fietze&qu= ot; <roman.fietze@telemoti= ve.de> wrote:

Hello Bill,


On Thursday 15 April 2010 15:01:59 Bill Gatl= iff wrote:

> Are you talking about this code here?
>
..= .

Yes. I added a routine like

/* Swap frame buffer bytes in 32 bit value. =A0*/
static __inline unsigned int
fbbits_swap32(unsigned int __bsx)
{
=A0 =A0return ((((__bsx) & 0xff000000) >> 8) | (((__bsx) & 0= x00ff0000) << 8) |
=A0 =A0 =A0 =A0 =A0 =A0(((__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=FCro M=FChlhausen
Breitwiesen .= ..

--0016e6475b0282f3af048448aff0--