From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Smith Subject: Re: mono, gray and index configs Date: Mon, 22 Aug 2005 08:30:51 -0500 Message-ID: <8a0c3678050822063073c3f4f6@mail.gmail.com> References: <9e47339105081020216574ac7e@mail.gmail.com> <42FAE3F8.8080902@gmail.com> <42FB8C29.4070503@gmail.com> <9e47339105081112142c67e1a8@mail.gmail.com> <43069BE0.80604@gmail.com> <9e473391050819200950020d7@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-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1E7COB-000347-Df for linux-fbdev-devel@lists.sourceforge.net; Mon, 22 Aug 2005 06:30:59 -0700 Received: from zproxy.gmail.com ([64.233.162.198]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1E7COA-0001es-7o for linux-fbdev-devel@lists.sourceforge.net; Mon, 22 Aug 2005 06:30:59 -0700 Received: by zproxy.gmail.com with SMTP id s18so629433nze for ; Mon, 22 Aug 2005 06:30:51 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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="us-ascii" To: linux-fbdev-devel@lists.sourceforge.net Cc: Jon Smirl , "Antonino A. Daplas" > > This adds an optional function to each driver that advertises what > > configs it offers. > > >=20 > Do we really need this? >=20 > You can easily write a `probe loop' to find out about all supported confi= gs for > a driver like this: >=20 > for_all_possible_configs(config) { > struct fb_var_screeninfo var; This will actually try to set the mode right? SDL does it this way and its caused me some pain dealing with framebuffers on hardware that has issues with certain modes. Its also a good bit slower for the app to startup while the code crunches out the pll settings. >From a users perspective I think advertising valid modes is a good thing. --=20 Richard A. Smith ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf