Re: [PATCH libdrm v3] modetest: Add support for setting mode having floating vertical refresh rate

2019-11-12 Thread Ville Syrjälä
On Mon, Nov 11, 2019 at 03:47:22AM -0800, Devarsh Thakkar wrote: > For the scenario where user may require to modeset with a mode > supporting a fractional value for vertical refresh-rate, > appropriate mode can be selected by searching for mode > having matching fractional vertical refresh rate

[PATCH libdrm v3] modetest: Add support for setting mode having floating vertical refresh rate

2019-11-12 Thread Devarsh Thakkar
For the scenario where user may require to modeset with a mode supporting a fractional value for vertical refresh-rate, appropriate mode can be selected by searching for mode having matching fractional vertical refresh rate using below equation. vrefresh = (1000 * pixel clock) / (htotal * vtotal)