Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MXGEJ-0007XP-5j for mharc-grub-devel@gnu.org; Sat, 01 Aug 2009 11:10:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXGEG-0007UB-Sk for grub-devel@gnu.org; Sat, 01 Aug 2009 11:10:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXGEC-0007Q8-EW for grub-devel@gnu.org; Sat, 01 Aug 2009 11:10:36 -0400 Received: from [199.232.76.173] (port=52921 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXGEC-0007Q5-98 for grub-devel@gnu.org; Sat, 01 Aug 2009 11:10:32 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]:41810) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXGEB-0007ne-PH for grub-devel@gnu.org; Sat, 01 Aug 2009 11:10:32 -0400 Received: by fxm26 with SMTP id 26so734271fxm.42 for ; Sat, 01 Aug 2009 08:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=J4GPb4ff+daHG39WixesqeL2gExhKBnxF1X206P1eXs=; b=UCQhgQA8Drk33hY9V1v2WMrFq8NrzTam1Dl0DoRRXiTs4KhZxA+L+28J0GdmwmseVT gaOBCkRct+UP5Ds+0XBSS3NSN/7SJ1HPdCIe7H5OzCiZ/mC4xxuz1MfccCvNqDIto0q9 5LVMmRcQwrX/KyseGXQA7S6VteRhAGlp5MHDU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=M3l5/slyZIMtGc1lJfjw6hzVAueM3nUNGNbT5QTN2gyvKo8lUY3doO3Fg2TEDXB0UY 0SMfhr9tJ4kFtDWTHyb7fW00am6Ln8++eYu49LFSQ2lf63w8WsHFCrkLtUmFQdAEHjKV nn9wUAHRnBk5o+MJMDrm+7GDRb91ts7IQBZyM= MIME-Version: 1.0 Received: by 10.204.118.12 with SMTP id t12mr4282416bkq.158.1249139430796; Sat, 01 Aug 2009 08:10:30 -0700 (PDT) In-Reply-To: <20090801150118.GB23133@thorin> References: <1248392495.2661.208.camel@mj> <20090801150118.GB23133@thorin> Date: Sat, 1 Aug 2009 17:10:30 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Fwd: [PATCH 1/2] Framebuffer split X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Aug 2009 15:10:37 -0000 > > I see that returning framebuffer address and finishing the video subsyste= m > must be together, but is there a reason to couple this with getting mode_= info ? When designing this part I thought of accelerated graphics. Before loading the OS they would switch to standard framebuffer mode this may also affect the formats used so the info may be different from get_info > > Btw, if I understand correctly, we have a race condition right now. =A0As= a > bugfix it'd be better to merge this separately from the interface redesig= n if > possible. race condition? We don't even have threads > > Also, does finishing the video subsystem only affect GRUB internally, or > result in any effect at the display level? =A0I want to avoid having visu= al > glitches when the payload is loaded without switching video mode. > Other than addition of double buffering changes will not result in any visible effect. >> - =A0modevar =3D grub_env_get ("gfxpayload"); >> - >> - =A0/* Now all graphical modes are acceptable. >> - =A0 =A0 May change in future if we have modes without framebuffer. =A0= */ >> [...] >> - =A0 =A0{ >> - =A0 =A0 =A0params->have_vga =3D GRUB_VIDEO_TYPE_TEXT; >> - =A0 =A0 =A0params->video_width =3D 80; >> - =A0 =A0 =A0params->video_height =3D 25; >> - =A0 =A0} >> - > > Why is this chunk of code moved down? =A0AFAICS, this change only involve= s > adding an additional layer between it and the video backend. =A0Does this > make it conflict with something else? > I wanted to keep normal grub_printf as long as possible and after get_mode_and_fini grub_printf may be unfunctional. >> +#define grub_video_render_target grub_video_fbrender_target > > If we want to rename this function, I'd rather do it all the way than > keeping a compatibility macro. =A0But then, I'd also prefer if this is > done separately from the rest (either before or after). > It's not about renaming but to inform includes that grub_video_render_target is in fact grub_video_fbrender_target and so avoid warnings and casts. >> +/* Select the best double buffering mode available. =A0*/ >> +static void >> +double_buffering_init (int enable) > > This patch also seems to add double buffering support, which is a feature > that wasn't yet implemented. =A0I suppose it's good to have (I'm not very > clued about graphics), but I'd prefer if we can merge this separately > from the redesign changes. > Ok, I will try to split while keeping patch functional. > -- > Robert Millan > > =A0The DRM opt-in fallacy: "Your data belongs to us. We will decide when = (and > =A0how) you may access your data; but nobody's threatening your freedom: = we > =A0still allow you to remove your data and not access it at all." > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git