mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xfree86: fix gtf support detection for EDID 1.4
According to the "VESA Enhanced EDID Standard", all GTF compliant
displays are continuous frequency.
The GTF support flags in 'Display Range Limits Descriptor' cannot be
used if the display is a non-continuous frequency multi-mode display.
Closes #1105
Signed-off-by: Pascal VITOUX <vitoux.pascal@gmail.com>
Fixes: 6a79a737 ("xfree86: add drm modes on non-GTF panels")
Reviewed-by: Aaron Ma aaron.ma@canonical.com
This commit is contained in:
committed by
Povilas Kanapickas
parent
b75d0cca28
commit
34e2a64ce0
@@ -768,7 +768,7 @@ gtf_supported(xf86MonPtr mon)
|
||||
} else {
|
||||
for (i = 0; i < DET_TIMINGS; i++) {
|
||||
struct detailed_monitor_section *det_timing_des = &(mon->det_mon[i]);
|
||||
if (det_timing_des && (det_timing_des->type == DS_RANGES) &&
|
||||
if (det_timing_des && (det_timing_des->type == DS_RANGES) && (mon->features.msc & 0x1) &&
|
||||
(det_timing_des->section.ranges.display_range_timing_flags == DR_DEFAULT_GTF
|
||||
|| det_timing_des->section.ranges.display_range_timing_flags == DR_SECONDARY_GTF))
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user