]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/VirtioGpuDxe: use GopQueryMode in GopSetMode
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 8 Apr 2022 08:23:31 +0000 (10:23 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 25 Apr 2022 21:01:13 +0000 (21:01 +0000)
commit5f6ecaa398ba902f724be504663a0156c9e24570
tree2e0c019a3cc078712e012d063833273edce6807c
parent82c07f2cc748b356750329435a161b00ab88bcf7
OvmfPkg/VirtioGpuDxe: use GopQueryMode in GopSetMode

Call GopQueryMode() in GopSetMode(), use the ModeInfo returned when
setting the mode.  This is needed to properly handle modes which are
not on the static mGopResolutions list.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
OvmfPkg/VirtioGpuDxe/Gop.c