]> Git Repo - qemu.git/commitdiff
edid: Added support for 4k@60 Hz monitor
authorSatyeshwar Singh <[email protected]>
Tue, 16 Nov 2021 22:11:03 +0000 (14:11 -0800)
committerGerd Hoffmann <[email protected]>
Thu, 13 Jan 2022 10:00:09 +0000 (11:00 +0100)
Previously, the large modes (>1080p) that were generated by Qemu in its EDID
were all 50 Hz. If we provide them to a Guest OS and the user selects
one of these modes, then the OS by default only gets 50 FPS. This is
especially true for Windows OS. With this patch, we are now exposing a
3840x2160@60 Hz which will allow the guest OS to get 60 FPS.

Cc: Gerd Hoffmann <[email protected]>
Signed-off-by: Satyeshwar Singh <[email protected]>
Message-Id: <20211116221103[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/display/edid-generate.c

index 6f5ac6a38ad864c3a07e1286b3b9fc2a59e36c7f..bccf32af69cee231c23a88e59f9d1b850339c761 100644 (file)
@@ -24,6 +24,9 @@ static const struct edid_mode {
     { .xres = 2048,   .yres = 1152 },
     { .xres = 1920,   .yres = 1080,   .dta =  31 },
 
+    /* dea/dta extension timings (all @ 60 Hz) */
+    { .xres = 3840,   .yres = 2160,   .dta =  97 },
+
     /* additional standard timings 3 (all @ 60Hz) */
     { .xres = 1920,   .yres = 1200,   .xtra3 = 10,   .bit = 0 },
     { .xres = 1600,   .yres = 1200,   .xtra3 =  9,   .bit = 2 },
This page took 0.022939 seconds and 4 git commands to generate.