diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2024-08-23 14:35:53 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-30 05:32:12 +0000 |
commit | 58035e8b5e11cfe2b9e6428d14c7817b6b1c83a2 (patch) | |
tree | 79f9290cd8e80853ddc9386714f8a9a4fdc36512 /OvmfPkg | |
parent | 6a7be5a8418ab6397375e32e399e9523db9d4293 (diff) | |
download | edk2-58035e8b5e11cfe2b9e6428d14c7817b6b1c83a2.tar.gz edk2-58035e8b5e11cfe2b9e6428d14c7817b6b1c83a2.tar.bz2 edk2-58035e8b5e11cfe2b9e6428d14c7817b6b1c83a2.zip |
OvmfPkg/VirtioGpuDxe: ignore display resolutions smaller than 640x480
GraphicsConsoleDxe will assert in case the resolution is too small.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/VirtioGpuDxe/Gop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OvmfPkg/VirtioGpuDxe/Gop.c b/OvmfPkg/VirtioGpuDxe/Gop.c index f64dfce5f4..d767114bbb 100644 --- a/OvmfPkg/VirtioGpuDxe/Gop.c +++ b/OvmfPkg/VirtioGpuDxe/Gop.c @@ -265,7 +265,8 @@ GopInitialize ( // query host for display resolution
//
GopNativeResolution (VgpuGop, &XRes, &YRes);
- if ((XRes == 0) || (YRes == 0)) {
+ if ((XRes < 640) || (YRes < 480)) {
+ /* ignore hint, GraphicsConsoleDxe needs 640x480 or larger */
return;
}
|