Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2021 18:52:35 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: 1790f5e654ff - main - loader: do not update palette in text mode
Message-ID:  <202101071852.107IqZ9F017017@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=1790f5e654ff20e61d8d83f16773dc0ef3f7da01

commit 1790f5e654ff20e61d8d83f16773dc0ef3f7da01
Author:     Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2021-01-07 07:07:59 +0000
Commit:     Toomas Soome <tsoome@FreeBSD.org>
CommitDate: 2021-01-07 15:07:53 +0000

    loader: do not update palette in text mode
    
    Apparently palette update while in text mode, will cause
    some adapters to end up with blank display.
---
 stand/i386/libi386/vidconsole.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/i386/libi386/vidconsole.c b/stand/i386/libi386/vidconsole.c
index a965c1d2e4f2..47150b3dd09f 100644
--- a/stand/i386/libi386/vidconsole.c
+++ b/stand/i386/libi386/vidconsole.c
@@ -936,7 +936,7 @@ cons_update_mode(bool use_gfx_mode)
 	    gfx_state.tg_fb.fb_mask_green >> goff, goff,
 	    gfx_state.tg_fb.fb_mask_blue >> boff, boff);
 
-	if (gfx_state.tg_ctype == CT_INDEXED)
+	if (gfx_state.tg_ctype == CT_INDEXED && !use_gfx_mode)
 		vidc_load_palette();
 
 	teken_set_winsize(&gfx_state.tg_teken, &gfx_state.tg_tp);



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