From: Ville Syrjälä Date: Mon, 28 Oct 2013 14:31:41 +0000 (+0200) Subject: drm/i915: Fix scanoutpos calculations for interlaced modes X-Git-Tag: v3.14-rc1~47^2~12^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d31faf65b8300fa120f4b31d90270fbac36fc779;p=pandora-kernel.git drm/i915: Fix scanoutpos calculations for interlaced modes The scanline counter counts lines in the current field, not the entire frame. But the crtc_ timings are the values for the entire frame. Divide the vertical timings by 2 to make them match the scanline counter. The rounding was carefully chosen to make it do the right thing wrt. the observed scanline counter and ISR vblank bit behaviour. Reviewed-by: mario.kleiner.de@gmail.com Signed-off-by: Ville Syrjälä --- Reading git-diff-tree failed