From: Vitaly Chipounov <vitaly(a)cyberhaven.com>
This requires at least 32MB of video memory.
Tested with Windows 10's default display driver and virtio-vga.
Signed-off-by: Vitaly Chipounov <vitaly(a)cyberhaven.com>
---
vgasrc/bochsvga.h | 4 ++--
vgasrc/svgamodes.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/vgasrc/bochsvga.h b/vgasrc/bochsvga.h
index ae5f75d..f08219f 100644
--- a/vgasrc/bochsvga.h
+++ b/vgasrc/bochsvga.h
@@ -6,8 +6,8 @@
#define VBE_DISPI_BANK_ADDRESS 0xA0000
#define VBE_DISPI_BANK_SIZE_KB 64
-#define VBE_DISPI_MAX_XRES 2560
-#define VBE_DISPI_MAX_YRES 1600
+#define VBE_DISPI_MAX_XRES 3840
+#define VBE_DISPI_MAX_YRES 2160
#define VBE_DISPI_IOPORT_INDEX 0x01CE
#define VBE_DISPI_IOPORT_DATA 0x01CF
diff --git a/vgasrc/svgamodes.c b/vgasrc/svgamodes.c
index 6e494c7..63ef040 100644
--- a/vgasrc/svgamodes.c
+++ b/vgasrc/svgamodes.c
@@ -92,5 +92,6 @@ 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 } },
+ { 0x199, { MM_DIRECT, 3840, 2160, 32, 8, 16, SEG_GRAPH } },
};
unsigned int svga_mcount VAR16 = ARRAY_SIZE(svga_modes);
--
2.25.1