aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2021-01-11 19:16:42 +0000
committerToomas Soome <tsoome@FreeBSD.org>2021-01-11 19:16:42 +0000
commit1a816c75600335c4482070df055add6f96885d54 (patch)
treee23d9b2dbcbd237d761e9d5ac708edfd8b806018
parent3005e10ddbfbec3ecf46a080607bb0d85986eee5 (diff)
downloadsrc-1a816c75600335c4482070df055add6f96885d54.tar.gz
src-1a816c75600335c4482070df055add6f96885d54.zip
loader.efi: efifb_mask_from_pixfmt is missing PixelBltOnly
We are missing way to set RGB masks for BLT only framebuffer.
-rw-r--r--stand/efi/loader/framebuffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stand/efi/loader/framebuffer.c b/stand/efi/loader/framebuffer.c
index fccbd82a09f7..db7bcb49f2f4 100644
--- a/stand/efi/loader/framebuffer.c
+++ b/stand/efi/loader/framebuffer.c
@@ -105,6 +105,7 @@ efifb_mask_from_pixfmt(struct efi_fb *efifb, EFI_GRAPHICS_PIXEL_FORMAT pixfmt,
result = 0;
switch (pixfmt) {
case PixelRedGreenBlueReserved8BitPerColor:
+ case PixelBltOnly:
efifb->fb_mask_red = 0x000000ff;
efifb->fb_mask_green = 0x0000ff00;
efifb->fb_mask_blue = 0x00ff0000;