]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
efifb: BGRT: Do not copy the boot graphics for non native resolutions
authorHans de Goede <hdegoede@redhat.com>
Tue, 24 Jul 2018 17:11:28 +0000 (19:11 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 24 Jul 2018 17:11:28 +0000 (19:11 +0200)
commit88fe4ceb2447773f6d0c6e3642dc46fcd6a4cdd1
tree5a602d8ca186f9cb0cb4afae728dcc9e8cd61b79
parent93de35c92a06f97f2f7c5d43170db10f8b774981
efifb: BGRT: Do not copy the boot graphics for non native resolutions

On x86 some firmwares use a low non native resolution for the display when
they have shown some text messages. While keeping the bgrt filled with info
for the native resolution. If the bgrt image intended for the native
resolution still fits, it will be displayed very close to the right edge of
the display looking quite bad.

This commits adds a (heuristics based) checks for this and makes efifb
not show the boot graphics when this is the case.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/efifb.c