drm/tests
Devarsh Thakkar 7f82714522 modetest: Use floating vrefresh while dumping mode
Add function to derive floating value of vertical
refresh rate from drm mode using pixel clock,
horizontal total size and vertical total size.

Use this function to find suitable mode having vrefresh
value which is matching with user provided vrefresh value.

If user doesn't provide any vrefresh value in args then
update vertical refresh rate value in pipe args using this
function.

Also use this function for printing floating vrefresh while
dumping all available modes.

This will give more accurate picture to user for available modes
differentiated by floating vertical refresh rate and help user
select more appropriate mode using suitable refresh rate value.

V4:
1) While setting mode, print mode name and vrefresh using struct
   drmModeModeInfo instead of struct pipe_args.
2) Revert back to using a float value instead of float *
   for vrefresh arg in connector_find_mode().

V3:
1) Change name of function used to derive refresh rate.

V2:
1) Don't use inline function for deriving refresh rate from mode.
2) If requested mode not found, print refresh rate only
   if user had provided it in args.

Signed-off-by: Devarsh Thakkar <devarsh.thakkar@xilinx.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2019-12-11 17:47:31 +02:00
..
amdgpu tests/amdgpu: add gfx ring bad slow draw test 2019-12-09 15:46:53 -05:00
etnaviv Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
exynos Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
kms Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
kmstest Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
modeprint Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
modetest modetest: Use floating vrefresh while dumping mode 2019-12-11 17:47:31 +02:00
nouveau tests/nouveau/threaded: adapt ioctl signature 2019-11-28 22:01:34 +01:00
proptest Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
radeon Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
tegra Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
ttmtest fix various typos 2019-04-17 18:23:25 +01:00
util Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
vbltest Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
Android.mk android: simplify the including rule of subdirs 2015-03-20 17:07:21 +00:00
drmdevice.c tests: skip drmdevice test if the machine doesn't have any drm device 2018-11-11 18:39:57 +00:00
drmsl.c drmsltest: Check expected neighbours 2017-08-21 13:05:13 +01:00
hash.c tests/hash: return non-zero on failure 2015-04-05 15:33:06 +01:00
meson.build meson: make symbols hidden by default 2018-09-19 22:46:45 -07:00
random.c tests/random: return non-zero on test failure 2015-04-05 15:33:33 +01:00