]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/VirtioGpuDxe: move code to GopInitialize
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 8 Apr 2022 08:23:32 +0000 (10:23 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 25 Apr 2022 21:01:13 +0000 (21:01 +0000)
commit86de090b9950aaa0d8392745088fb0b150f17f3a
treeb67e74effda1cb8d4d8724dfeca07c12638f0a73
parent5f6ecaa398ba902f724be504663a0156c9e24570
OvmfPkg/VirtioGpuDxe: move code to GopInitialize

Add new function to initialize the GOP, move over setup code.  Handle
initialization first, specifically before calling GopQueryMode(), so
GopQueryMode is never called before GopInitialize() did complete.

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