]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add a small adjustment to the pixel counter on interlaced modes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 29 Apr 2014 10:35:49 +0000 (13:35 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 May 2014 13:06:35 +0000 (15:06 +0200)
commit83336aecc869b1cc9743467afa49bd9e7a479bd3
tree93ac747a8b2e3fd1e3a1a69ef8fd0173e1aac583
parent0cc76d04c6883bdcf0d61a8ac1909e85c5fc2c7a
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ä <ville.syrjala@linux.intel.com>
Reviewed-by: "Akash Goel <akash.goels@gmail.com>"
Reviewed-by: "Sourab Gupta <sourabgupta@gmail.com>"
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c