OvmfPkg/VirtioGpuDxe: query native display resolution from host

Try query native display resolution from the host.  When successful,
setup PcdVideoHorizontalResolution and PcdVideoVerticalResolution
accordingly and add the video mode to the GOP mode list if needed.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
Gerd Hoffmann
2022-04-08 10:23:33 +02:00
committed by mergify[bot]
parent 86de090b99
commit 916f90baa5
3 changed files with 99 additions and 5 deletions

View File

@@ -151,6 +151,12 @@ struct VGPU_GOP_STRUCT {
// BackingStore is non-NULL.
//
VOID *BackingStoreMap;
//
// native display resolution
//
UINT32 NativeXRes;
UINT32 NativeYRes;
};
//