From: Ville Syrjälä Date: Tue, 29 Apr 2014 10:35:49 +0000 (+0300) Subject: drm/i915: Add a small adjustment to the pixel counter on interlaced modes X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~38^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e78f1cb387e4b6fe2c33adcc987b114516a093f;p=pandora-kernel.git drm/i915: Add a small adjustment to the pixel counter on interlaced modes In interlaced modes, the pixel counter counts all pixels, so one field will have htotal more pixels. In order to avoid the reported position from jumping backwards when the pixel counter is beyond the length of the shorter field, just clamp the position the length of the shorter field. This matches how the scanline counter based position works since the scanline counter doesn't count the two half lines. Signed-off-by: Ville Syrjälä Reviewed-by: "Akash Goel " Reviewed-by: "Sourab Gupta " Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed