@@ -4325,7 +4325,7 @@ sna_output_add_default_modes(xf86OutputPtr output, DisplayModePtr modes)
int max_x = 0, max_y = 0, max_clock = 0;
float max_vrefresh = 0.0;
- if (mon && GTF_SUPPORTED(mon->features.msc))
+ if (mon && gtf_supported(mon))
return modes;
for (m = modes; m; m = m->next) {
@@ -915,7 +915,7 @@ intel_output_panel_edid(xf86OutputPtr output, DisplayModePtr modes)
{
xf86MonPtr mon = output->MonInfo;
- if (!mon || !GTF_SUPPORTED(mon->features.msc)) {
+ if (!mon || !gtf_supported(mon)) {
DisplayModePtr i, m, p = NULL;
int max_x = 0, max_y = 0;
float max_vrefresh = 0.0;
EDID1.4 replaced GTF Bit with Continuous or Non-Continuous Frequency Display. SNA still check this bit as GTF support, only defined modes in EDID will be set. Correct the GTF support check, then add more modes. Note, gtf_supported must be included in xserver. https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/421 BugLink: https://gitlab.freedesktop.org/drm/intel/issues/313 Signed-off-by: Aaron Ma <aaron.ma@canonical.com> --- src/sna/sna_display.c | 2 +- src/uxa/intel_display.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)