From 8e263385c53000b3dacb75b4927f35d9341e0ab8 Mon Sep 17 00:00:00 2001 From: Sun Peng Date: Mon, 23 May 2022 11:12:56 +0800 Subject: [PATCH] dm: vdisplay: add modes supported by Windows virtio-gpu driver Add 1280x1024@75, 1024x768@75, 1600x1200@60, 1600x900@60 modes. Tracked-On: #7507 Signed-off-by: Sun Peng Acked-by: Wang, Yu1 --- devicemodel/hw/vdisplay_sdl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devicemodel/hw/vdisplay_sdl.c b/devicemodel/hw/vdisplay_sdl.c index a317638a8..dfad4c6a8 100644 --- a/devicemodel/hw/vdisplay_sdl.c +++ b/devicemodel/hw/vdisplay_sdl.c @@ -108,14 +108,18 @@ static const struct timing_entry { bool is_std; // the flag of standard mode } timings[] = { /* Established Timings I & II (all @ 60Hz) */ + { .hpixel = 1280, .vpixel = 1024, .byte = 36, .bit = 0, .hz = 75}, + { .hpixel = 1024, .vpixel = 768, .byte = 36, .bit = 1, .hz = 75}, { .hpixel = 1024, .vpixel = 768, .byte = 36, .bit = 3, .hz = 60}, { .hpixel = 800, .vpixel = 600, .byte = 35, .bit = 0, .hz = 60 }, { .hpixel = 640, .vpixel = 480, .byte = 35, .bit = 5, .hz = 60 }, /* Standard Timings */ { .hpixel = 1920, .vpixel = 1080, .hz = 60, .is_std = true }, + { .hpixel = 1680, .vpixel = 1050, .hz = 60, .is_std = true }, + { .hpixel = 1600, .vpixel = 1200, .hz = 60, .is_std = true }, + { .hpixel = 1600, .vpixel = 900, .hz = 60, .is_std = true }, { .hpixel = 1440, .vpixel = 900, .hz = 60, .is_std = true }, - { .hpixel = 1680, .vpixel = 1050, .hz = 60, .is_std = true }, }; typedef struct frame_param{