diff --git a/hw/xfree86/ddc/edid.h b/hw/xfree86/ddc/edid.h index adc9bf71c9..3845ecc32f 100644 --- a/hw/xfree86/ddc/edid.h +++ b/hw/xfree86/ddc/edid.h @@ -12,6 +12,7 @@ #ifndef _EDID_H_ #define _EDID_H_ +#include #include #ifndef _X_EXPORT @@ -668,4 +669,12 @@ struct cea_ext_body { struct cea_data_block data_collection; }; +/* + * check whether monitor supports Generalized Timing Formula + * + * @param monitor the monitor information structure to check + * @return true if GTF is supported by the monitor + */ +_X_EXPORT bool xf86Monitor_gtf_supported(xf86MonPtr monitor); + #endif /* _EDID_H_ */ diff --git a/hw/xfree86/ddc/interpret_edid.c b/hw/xfree86/ddc/interpret_edid.c index 5e48919724..808cabed44 100644 --- a/hw/xfree86/ddc/interpret_edid.c +++ b/hw/xfree86/ddc/interpret_edid.c @@ -777,3 +777,11 @@ gtf_supported(xf86MonPtr mon) return FALSE; } + +bool xf86Monitor_gtf_supported(xf86MonPtr monitor) +{ + if (!monitor) + return false; + + return GTF_SUPPORTED(monitor->features.msc); +}