diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2021-01-16 15:35:51 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2021-01-16 15:39:40 +0000 |
commit | 3ddf7eade0e9e770a78f190bee00c2a7ba256ef5 (patch) | |
tree | 72e555eaecb9e934a0263df46f7901d79aee642c | |
parent | 7593c13e180f64a19ff4fc611f5e8955e7836466 (diff) | |
download | src-3ddf7eade0e9e770a78f190bee00c2a7ba256ef5.tar.gz src-3ddf7eade0e9e770a78f190bee00c2a7ba256ef5.zip |
loader.efi: Use Blt with gop as default
System with FB address 0x4000000000 does not draw, Blt() is doing fine.
I think, we can assume the Blt will usually work.
-rw-r--r-- | stand/common/gfx_fb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/stand/common/gfx_fb.c b/stand/common/gfx_fb.c index 76fd8855a5be..9342521fd0cf 100644 --- a/stand/common/gfx_fb.c +++ b/stand/common/gfx_fb.c @@ -710,8 +710,11 @@ gfxfb_blt(void *BltBuffer, GFXFB_BLT_OPERATION BltOperation, EFI_STATUS status; EFI_GRAPHICS_OUTPUT *gop = gfx_state.tg_private; - if (gop != NULL && (gop->Mode->Info->PixelFormat == PixelBltOnly || - gfx_state.tg_fb.fb_addr == 0)) { + /* + * We assume Blt() does work, if not, we will need to build + * exception list case by case. + */ + if (gop != NULL) { switch (BltOperation) { case GfxFbBltVideoFill: status = gop->Blt(gop, BltBuffer, EfiBltVideoFill, |