The branch main has been updated by tsoome:

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

commit 3ddf7eade0e9e770a78f190bee00c2a7ba256ef5
Author:     Toomas Soome <tso...@freebsd.org>
AuthorDate: 2021-01-16 15:35:51 +0000
Commit:     Toomas Soome <tso...@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,
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to