aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2018-06-19 13:34:54 +0200
committerAlexander Graf <agraf@suse.de>2018-06-21 17:18:18 +0200
commit6fc2c704d40255e418857b60e86cf8d76fbcda4b (patch)
tree7485dd780b7f19c1caad6c796b8284d809a9a831 /lib
parenta5742efa20384a27d51ee6c43d02c2025536c65d (diff)
downloadu-boot-6fc2c704d40255e418857b60e86cf8d76fbcda4b.zip
u-boot-6fc2c704d40255e418857b60e86cf8d76fbcda4b.tar.gz
u-boot-6fc2c704d40255e418857b60e86cf8d76fbcda4b.tar.bz2
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 <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>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_gop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c
index 1afe841..3a36bbc 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;