Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mbv9x-0001Pj-Ta for mharc-grub-devel@gnu.org; Fri, 14 Aug 2009 07:41:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mbv9t-0001PZ-TK for grub-devel@gnu.org; Fri, 14 Aug 2009 07:41:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mbv9p-0001PN-1C for grub-devel@gnu.org; Fri, 14 Aug 2009 07:41:21 -0400 Received: from [199.232.76.173] (port=37987 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mbv9o-0001PK-NE for grub-devel@gnu.org; Fri, 14 Aug 2009 07:41:16 -0400 Received: from mail-bw0-f218.google.com ([209.85.218.218]:54508) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mbv9o-0008BG-6J for grub-devel@gnu.org; Fri, 14 Aug 2009 07:41:16 -0400 Received: by bwz18 with SMTP id 18so1074518bwz.31 for ; Fri, 14 Aug 2009 04:41:15 -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=xH4Z24g3UALJmEizbkhgLNZLLTK1emDZohH8La85mcs=; b=HjwJSkwGQ1WwPdQAr8K7a7rWhbhJm1L5ilZuw2xR0eU1fxgDUR+iAMFuD4+JmPloc7 5QilHycET9X4IiFiMinDTt3dXeHbiqSbW30cUaVeqtqexFtgl7GirYzTn7QarFapn7GL FULTSC9/2zYi0dkCTs3C4EfXEzS4/M4zxmlEo= 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=xu78Yq11DK+JAaKo8CKQ+JCGjTj7JUoTZqA1OTeQBqr5zZDDEcY0pnV1/sZlj48qSQ zBtB26M+QqFCc+6sOFJB/89P3QQcs2Dkpm0xm5EfOaN+8uQMyPwh7bqkHjEqHfVarNdE Rcu8hBLf/SdlJ6OhBaseIpXGpTMJBUmkqAQAg= MIME-Version: 1.0 Received: by 10.204.55.15 with SMTP id s15mr1164668bkg.53.1250250075089; Fri, 14 Aug 2009 04:41:15 -0700 (PDT) In-Reply-To: References: Date: Fri, 14 Aug 2009 13:41:14 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Fri, 14 Aug 2009 11:41:22 -0000 On Fri, Aug 14, 2009 at 2:13 AM, Michal Suchanek wrote: > 2009/8/13 Vladimir 'phcoder' Serbinenko : >>> Considering that vbe.c and sdl.c currently aren't affected a lot >>> whether there is or there isn't encapsulation in place, I'm ok tih >>> encapsulating it but if any driver needs the breach of encapsulation >>> it will be broken and I'll post no opposition to it. >>> I'll do the encapsulation tomorrow. >> Patch attached. One incremental version (for review) and one complete >> (for patching) > > The patch as presented here works for me. > > However, I wonder some of the changes: > > In the latest round of patches struct grub_video_fbrender_target > declaration was needlessly and somewhat illogically moved from > video_fb.h to fbfill.h. fbfill.h is a private header whereas video_fb.h is public one. You're the one who requested encapsulation > > I am not sure if this is to hide the structure from other code but it > logically belongs to video_fb.h. > Again, you're the one who requested encapsulation. > In grub_video_vbe_setup function in vbe.c the default palette is > loaded before the created render target is set as active. I guess this > would be a problem if the palette was actually needed/supported. > Changing the order to create, set_active, set_palette makes the code > fail for me,though. Works for me. Have you forgotten about 'return' ? > > In this same code struct grub_video_mode_info mode_info is added in > the last round of patches but I cannot find where the changed code > touches the variable. This is somewhat odd. grep is your friend: framebuffer.mode_info.width = active_mode_info.x_resolution; and follows. Since now vbe.c can't manipulate directly the target. Again, you're the one who requested encapsulation. > > In create_render_target_from_pointer the is_allocated is set to 0 twice. Fixed > I'm running the series of tests now and when I'm finished I'll commit it. After that you're welcome to submit patches for the problems you spot (you already talked about few) > Thanks > > Michal > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git