]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: Fix GOP 32bpp exposure
authorAlexander Graf <agraf@suse.de>
Tue, 19 Jun 2018 11:34:54 +0000 (13:34 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 21 Jun 2018 15:18:18 +0000 (17:18 +0200)
We store pixels as BGRA in memory, as can be seen from struct efi_gop_pixel.
So we need to expose the same format to UEFI payloads to actually have them
use the correct colors.

Reported-by: Fabian Vogt <fvogt@suse.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_gop.c

index 1afe8418e127342771b9989ef115d5c69bff5d73..3a36bbcbfaeac90a14acdab6791fa639ee309edf 100644 (file)
@@ -472,7 +472,7 @@ efi_status_t efi_gop_register(void)
        gopobj->info.version = 0;
        gopobj->info.width = col;
        gopobj->info.height = row;
-       gopobj->info.pixel_format = EFI_GOT_RGBA8;
+       gopobj->info.pixel_format = EFI_GOT_BGRA8;
        gopobj->info.pixels_per_scanline = col;
 
        gopobj->bpix = bpix;