]> git.ipfire.org Git - thirdparty/grub.git/commit
efi/gop: Add support for BLT_ONLY adapters
authorAlexander Graf <agraf@suse.de>
Wed, 4 Mar 2020 11:58:45 +0000 (12:58 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 Mar 2020 20:40:31 +0000 (21:40 +0100)
commite642c95ab6a520c8f99f1bfc44de761e2be13b89
treee7efd78b62fee961487f4b66e3878edc00860bad
parentf0f97576e02208eb947c8da4bd14c54ea3573109
efi/gop: Add support for BLT_ONLY adapters

EFI GOP has support for multiple different bitness types of frame buffers
and for a special "BLT only" type which is always defined to be RGBx.

Because grub2 doesn't ever directly access the frame buffer but instead
only renders graphics via the BLT interface anyway, we can easily support
these adapters.

The reason this has come up now is the emerging support for virtio-gpu
in OVMF. That adapter does not have the notion of a memory mapped frame
buffer and thus is BLT only.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/video/efi_gop.c
include/grub/efi/graphics_output.h