From: Alexander Graf Date: Tue, 19 Jun 2018 11:34:54 +0000 (+0200) Subject: efi_loader: Fix GOP 32bpp exposure X-Git-Tag: v2018.07-rc3~20^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6fc2c704d40255e418857b60e86cf8d76fbcda4b;p=u-boot efi_loader: Fix GOP 32bpp exposure 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 Tested-by: Peter Robinson Reviewed-by: Heinrich Schuchardt Signed-off-by: Alexander Graf --- diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c index 1afe8418e1..3a36bbcbfa 100644 --- a/lib/efi_loader/efi_gop.c +++ b/lib/efi_loader/efi_gop.c @@ -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;