aboutsummaryrefslogtreecommitdiff
path: root/stand/common
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2021-01-16 15:35:51 +0000
committerToomas Soome <tsoome@FreeBSD.org>2021-01-16 15:39:40 +0000
commit3ddf7eade0e9e770a78f190bee00c2a7ba256ef5 (patch)
tree72e555eaecb9e934a0263df46f7901d79aee642c /stand/common
parent7593c13e180f64a19ff4fc611f5e8955e7836466 (diff)
downloadsrc-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.
Diffstat (limited to 'stand/common')
-rw-r--r--stand/common/gfx_fb.c7
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,