From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Antonino A. Daplas" Subject: Re: Choosing the correct framebuffer configuration Date: Mon, 08 Aug 2005 04:47:27 +0800 Message-ID: <42F6735F.2060005@gmail.com> References: <9e473391050805184756f055ea@mail.gmail.com> <9e473391050807083327b190f9@mail.gmail.com> <1123430435.3848.332.camel@localhost> <1123431300.30257.116.camel@gaston> <1123432349.3978.335.camel@localhost> <9e47339105080709537a8064bb@mail.gmail.com> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1E1s3I-0007Wn-LD for linux-fbdev-devel@lists.sourceforge.net; Sun, 07 Aug 2005 13:47:24 -0700 Received: from wproxy.gmail.com ([64.233.184.197]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1E1s3I-0003XA-Bn for linux-fbdev-devel@lists.sourceforge.net; Sun, 07 Aug 2005 13:47:24 -0700 Received: by wproxy.gmail.com with SMTP id i21so633159wra for ; Sun, 07 Aug 2005 13:47:17 -0700 (PDT) In-Reply-To: <9e47339105080709537a8064bb@mail.gmail.com> Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: linux-fbdev-devel@lists.sourceforge.net Jon Smirl wrote: > On 8/7/05, Michel D=E4nzer wrote: >> On Sun, 2005-08-07 at 18:14 +0200, Benjamin Herrenschmidt wrote: >>>>> The problem is that the radeonfb driver sees bpp =3D 32 and then se= ts >>>>> rgbt =3D 8/8/8/8. It stomps rgbt without looking at it. >>>> Looks like a radeonfb bug. >>> It's not a bug :) radeonfb doesn't support anything but that format f= or >>> now. >> According to Geert's rules, it should fail instead of rounding down >> r/g/b. >=20 > One problem with these rules is that it makes it hard to determine > what is the best config available. I can't just set in 255BPP and then > let it tell me the best available config. >=20 > What config should I get if everything is zero, BPP and rgbt? > According to the rules this is an error, should it instead return the > best config? >=20 Rule is you can round-up but not round-down. If bpp =3D 255, error. If bpp =3D 0, return the nearest config ie, bpp8, argb8. Also, drivers look at bpp first. Then it only looks at argb if there are more than one format per bpp. That's what most user apps expect. Tony ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practic= es Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q= A Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf