38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
|
From f53820c753be836a79d5743d4181f6827e12bcdf Mon Sep 17 00:00:00 2001
|
||
|
From: Gerd Hoffmann <kraxel@redhat.com>
|
||
|
Date: Fri, 23 Aug 2024 14:35:53 +0200
|
||
|
Subject: [PATCH 1/3] OvmfPkg/VirtioGpuDxe: ignore display resolutions smaller
|
||
|
than 640x480
|
||
|
|
||
|
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
||
|
RH-MergeRequest: 72: ignore display resolutions smaller than 640x480
|
||
|
RH-Jira: RHEL-56248
|
||
|
RH-Acked-by: Oliver Steffen <osteffen@redhat.com>
|
||
|
RH-Commit: [1/2] 1d63fc76f46a6adb49e6c9447563d70ff9728b04 (kraxel.rh/centos-src-edk2)
|
||
|
|
||
|
GraphicsConsoleDxe will assert in case the resolution is too small.
|
||
|
|
||
|
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
||
|
(cherry picked from commit 58035e8b5e11cfe2b9e6428d14c7817b6b1c83a2)
|
||
|
---
|
||
|
OvmfPkg/VirtioGpuDxe/Gop.c | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
--
|
||
|
2.39.3
|
||
|
|