diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2022-01-17 10:58:17 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-01-29 17:04:21 +0000 |
commit | 49a2d8cbf5191efd5c2709acd1a1e64f0d9599de (patch) | |
tree | af663fd0537dd257b588779478f1a3edf16682cc /SecurityPkg | |
parent | 55c05427b90230f15f4807a4daa2876e5e2f4998 (diff) | |
download | edk2-49a2d8cbf5191efd5c2709acd1a1e64f0d9599de.tar.gz edk2-49a2d8cbf5191efd5c2709acd1a1e64f0d9599de.tar.bz2 edk2-49a2d8cbf5191efd5c2709acd1a1e64f0d9599de.zip |
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>
Diffstat (limited to 'SecurityPkg')
0 files changed, 0 insertions, 0 deletions