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 <peng.p.sun@linux.intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
Sun Peng 2022-05-23 11:12:56 +08:00 committed by acrnsi-robot
parent a4b08b7694
commit 8e263385c5
1 changed files with 5 additions and 1 deletions

View File

@ -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{