]> git.baikalelectronics.ru Git - kernel.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)
commita1424353d0b28857cd14d5ef652c6a5dadf39903
tree5a602d8ca186f9cb0cb4afae728dcc9e8cd61b79
parent7bf377f7f111a5fb995133fae3f44fc35fa86ef4
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