xserver/hw/xfree86/drivers/modesetting
Chia-Lin Kao (AceLan) f59871587e hw/xfree86: re-calculate the clock and refresh rate
xserver fails to generate useable resolutions with 90Hz framerate
panels(encounter the same issue with 3 different 2.5k resolution
panels). All the resolutions shown by xrandr lead to blank screen except
the one written in EDID.
Ville Syrjälä from Intel provides a method to calculate the preferred
clock and refresh rate from the existing resolution table and this
works for the issue.

v2. xf86ModeVRefresh might return 0, need to check it before use it.
v3. reported by Markus on launchpad that the issue is not devided by 0,
it's the "preferred" being accessed unconditionally.
BugLink: https://launchpad.net/bugs/1999852

Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1388
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
2023-12-22 05:02:05 +00:00
..
dri2.c modesetting: Pass reference CRTC pointer to ms_do_pageflip 2023-02-28 22:43:37 -08:00
driver.c modesetting: Enable TearFree by default 2023-12-17 16:59:57 +00:00
driver.h modesetting: Use a more optimal hw cursor size 2023-12-16 08:03:26 +02:00
drmmode_display.c hw/xfree86: re-calculate the clock and refresh rate 2023-12-22 05:02:05 +00:00
drmmode_display.h modesetting: Use a more optimal hw cursor size 2023-12-16 08:03:26 +02:00
dumb_bo.c modesetting: Include dix-config.h from dumb_bo.c 2015-05-12 08:02:11 -07:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
meson.build xfree86: Link fb statically 2019-07-23 14:24:00 -04:00
modesetting.man modesetting: Enable TearFree by default 2023-12-17 16:59:57 +00:00
pageflip.c modesetting: unflip before any setcrtc() calls 2023-12-16 04:36:39 +00:00
present.c modesetting: unflip before any setcrtc() calls 2023-12-16 04:36:39 +00:00
vblank.c modesetting: unflip before any setcrtc() calls 2023-12-16 04:36:39 +00:00