drm/vc4: Fix handling of interlaced video modes.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Tue, 19 Jul 2016 18:58:58 +0000 (20:58 +0200)
committerEric Anholt <eric@anholt.net>
Sat, 20 Aug 2016 02:05:49 +0000 (19:05 -0700)
commitacc1be1d351e8d5c0c8d14dad904ae0e39fc3653
treea68e8e73fdd44eb82588b9e562f25f57d30ddd6e
parente2298350de58d5c956131003606bfa4995f26933
drm/vc4: Fix handling of interlaced video modes.

We must not apply CRTC_INTERLACE_HALVE_V to interlaced modes during
mode enumeration, as drm_helper_probe_single_connector_modes
does, so wrap it and reset the effect of CRTC_INTERLACE_HALVE_V
on affected interlaced modes.

Also mode_fixup interlaced modes passed in from user space.

This fixes the vblank timestamping constants and entries in
the mode->crtc_xxx fields needed for precise vblank timestamping.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_hdmi.c