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:
committed by
mergify[bot]
parent
86de090b99
commit
916f90baa5
@@ -151,6 +151,12 @@ struct VGPU_GOP_STRUCT {
|
||||
// BackingStore is non-NULL.
|
||||
//
|
||||
VOID *BackingStoreMap;
|
||||
|
||||
//
|
||||
// native display resolution
|
||||
//
|
||||
UINT32 NativeXRes;
|
||||
UINT32 NativeYRes;
|
||||
};
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user