drm_hwcomposer: recalculate vrefresh from clock + resolution

For DMT modes and HDMI modes with 1000/1001 variations, the kernel reports the vrefresh in integer, rounded up, thus 59.94Hz or 23.97Hz are reported as 60Hz and 24Hz to userspace.

To solve this, recalculate the vrefresh from clock + resolution.

Signed-off-by: Neil Armstrong narmstrong@baylibre.com

Edited by Neil Armstrong

Merge request reports