]> Git Repo - J-u-boot.git/commitdiff
efi_loader: Fix GOP 32bpp exposure
authorAlexander Graf <[email protected]>
Tue, 19 Jun 2018 11:34:54 +0000 (13:34 +0200)
committerAlexander Graf <[email protected]>
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 <[email protected]>
Tested-by: Peter Robinson <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
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;
This page took 0.035306 seconds and 4 git commands to generate.