summaryrefslogtreecommitdiff
path: root/vgasrc
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-12-16 08:20:58 +0100
committerKevin O'Connor <kevin@koconnor.net>2021-12-18 11:54:52 -0500
commitf9af71744a9f9a5d4804edcfcd14fd85e2d8a83b (patch)
treec3c80d21fa481144baf82bb8c062639c46d4e752 /vgasrc
parenta05af290bac55be65e979e007687d4e27cfa7b8d (diff)
downloadqemu-seabios-f9af71744a9f9a5d4804edcfcd14fd85e2d8a83b.tar.gz
svgamodes: add standard 4k modes
Add all three 4k modes. Computer monitors typically use the first one (3840x2160). Add 16 and 32 bpp variants. 24bpp is dead these days, and software which is so old that still uses those modes most likely doesn't even know what 4k is. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/svgamodes.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vgasrc/svgamodes.c b/vgasrc/svgamodes.c
index 6e494c7..2543b95 100644
--- a/vgasrc/svgamodes.c
+++ b/vgasrc/svgamodes.c
@@ -92,5 +92,13 @@ struct generic_svga_mode svga_modes[] VAR16 = {
{ 0x196, { MM_DIRECT, 2560, 1440, 16, 8, 16, SEG_GRAPH } },
{ 0x197, { MM_DIRECT, 2560, 1440, 24, 8, 16, SEG_GRAPH } },
{ 0x198, { MM_DIRECT, 2560, 1440, 32, 8, 16, SEG_GRAPH } },
+
+ /* 4k modes */
+ { 0x199, { MM_DIRECT, 3840, 2160, 16, 8, 16, SEG_GRAPH } },
+ { 0x19a, { MM_DIRECT, 3840, 2160, 32, 8, 16, SEG_GRAPH } },
+ { 0x19b, { MM_DIRECT, 4096, 2160, 16, 8, 16, SEG_GRAPH } },
+ { 0x19c, { MM_DIRECT, 4096, 2160, 32, 8, 16, SEG_GRAPH } },
+ { 0x19d, { MM_DIRECT, 5120, 2160, 16, 8, 16, SEG_GRAPH } },
+ { 0x19e, { MM_DIRECT, 5120, 2160, 32, 8, 16, SEG_GRAPH } },
};
unsigned int svga_mcount VAR16 = ARRAY_SIZE(svga_modes);