audk/OvmfPkg/QemuVideoDxe
Gerd Hoffmann 49a2d8cbf5 OvmfPkg/QemuVideoDxe: parse edid blob, detect display resolution
Check whenever an EDID blob is present.  In case it is get the display
resolution from it.  Unless PcdVideoResolutionSource indicates the
display resolution has been set already, update
PcdVideoHorizontalResolution and PcdVideoVerticalResolution accordingly.
Also add the resolution to the mode list.

This will make OVMF boot up with the display resolution configured by
QEMU, which is 1280x800 by default.  The resolution can be set using the
xres and yres properties.  Here is an example for FullHD:

qemu-system-x86_64 -device VGA,xres=1920,yres=1080

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3778
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1749250
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
2022-01-29 17:04:21 +00:00
..
ComponentName.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Driver.c OvmfPkg/QemuVideoDxe: simplify InitializeBochsGraphicsMode 2022-01-29 17:04:21 +00:00
Gop.c OvmfPkg/QemuVideoDxe: simplify InitializeBochsGraphicsMode 2022-01-29 17:04:21 +00:00
Initialize.c OvmfPkg/QemuVideoDxe: parse edid blob, detect display resolution 2022-01-29 17:04:21 +00:00
Qemu.h OvmfPkg/QemuVideoDxe: parse edid blob, detect display resolution 2022-01-29 17:04:21 +00:00
QemuVideoDxe.inf OvmfPkg/QemuVideoDxe: parse edid blob, detect display resolution 2022-01-29 17:04:21 +00:00
VbeShim.asm OvmfPkg/Qemu: Fix various typos 2020-02-10 22:30:07 +00:00
VbeShim.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VbeShim.h OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VbeShim.sh OvmfPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:19 -07:00