Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2021 19:14:47 GMT
From:      Toomas Soome <tsoome@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3ddf7eade0e9 - main - loader.efi: Use Blt with gop as default
Message-ID:  <202101161914.10GJEl9n066797@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tsoome:

URL: https://cgit.FreeBSD.org/src/commit/?id=3ddf7eade0e9e770a78f190bee00c2a7ba256ef5

commit 3ddf7eade0e9e770a78f190bee00c2a7ba256ef5
Author:     Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2021-01-16 15:35:51 +0000
Commit:     Toomas Soome <tsoome@FreeBSD.org>
CommitDate: 2021-01-16 15:39:40 +0000

    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.
---
 stand/common/gfx_fb.c | 7 +++++--
 1 file 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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101161914.10GJEl9n066797>