public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Nico Huber <nico.h@gmx.de>
To: "You, Benjamin" <benjamin.you@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: Arthur Heymans <arthur@aheymans.xyz>
Subject: Re: [PATCH] CorebootPayloadPkg: Use correct BytesPerScanLine
Date: Sun, 28 Jan 2018 15:33:53 +0100	[thread overview]
Message-ID: <c5f9fc93-babd-27e6-332a-018a8c476fef@gmx.de> (raw)
In-Reply-To: <E748835C6D8DB54B8E8AF33091ECC57C62145F41@shsmsx102.ccr.corp.intel.com>

Hi Ben,

On 28.01.2018 09:49, You, Benjamin wrote:
> Hi Nico,
> 
> Thanks for the detailed information. It makes sense. I do like the idea of
> documenting the lb_framebuffer.
> 
>> The only guarantee for `bytes_per_pixel` (typo? 'bytes_per_scanline') 

yes, typo.

>> and `x_resolution` you get as a consumer, is that the former is big 
>> enough to hold `x_resolution` pixels.
> 
> I think it would be good to also document that the consumer is assured that
> in framebuffer, all the 'x_resolution' pixels are aligned at the beginning
> of each scanline, and the extra bytes are always padded after the 
> 'x_resolution' pixels in the scanline. Would this be true with existing
> graphics devices? (I am not expert in this area so I'd like to confirm.)

Yes, that's true. I've started to document the whole thing now:

https://review.coreboot.org/#/c/coreboot/+/23466/4/src/commonlib/include/commonlib/coreboot_tables.h@214

The same applies in principle to EFI_GRAPHICS_OUTPUT_MODE_INFORMATION.
This framebuffer layout is very common.

Nico


  reply	other threads:[~2018-01-28 14:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24 10:57 [PATCH] CorebootPayloadPkg: Use correct BytesPerScanLine arthur
2018-01-25  5:34 ` You, Benjamin
2018-01-25  9:03   ` Arthur Heymans
2018-01-26  8:40     ` You, Benjamin
2018-01-26  9:08       ` Arthur Heymans
2018-01-27  4:11         ` You, Benjamin
2018-01-27 10:17           ` Arthur Heymans
2018-01-27 14:14           ` Nico Huber
2018-01-28  8:49             ` You, Benjamin
2018-01-28 14:33               ` Nico Huber [this message]
2018-01-29  1:09                 ` You, Benjamin
2018-01-29  5:36 ` You, Benjamin
2018-01-30  6:15 ` You, Benjamin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c5f9fc93-babd-27e6-332a-018a8c476fef@gmx.de \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox