aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatyeshwar Singh <satyeshwar.singh@intel.com>2021-11-16 14:11:03 -0800
committerGerd Hoffmann <kraxel@redhat.com>2022-01-13 11:00:09 +0100
commitf0602b709985b28bc8ce572d6c517d9c26669735 (patch)
treec1b0a9870f67fabb5b881faf3e4a5c8b76c853d6
parentde72c4b7cdf6ec18bfe9fe714aa96e48db6fd895 (diff)
downloadqemu-f0602b709985b28bc8ce572d6c517d9c26669735.zip
qemu-f0602b709985b28bc8ce572d6c517d9c26669735.tar.gz
qemu-f0602b709985b28bc8ce572d6c517d9c26669735.tar.bz2
edid: Added support for 4k@60 Hz monitor
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 <kraxel@redhat.com> Signed-off-by: Satyeshwar Singh <satyeshwar.singh@intel.com> Message-Id: <20211116221103.27128-1-dongwon.kim@intel.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--hw/display/edid-generate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/display/edid-generate.c b/hw/display/edid-generate.c
index 6f5ac6a..bccf32a 100644
--- a/hw/display/edid-generate.c
+++ b/hw/display/edid-generate.c
@@ -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 },