]> Pileus Git - ~andy/linux/commit
drm/i915: Fix gen2 scanout position readout
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 Oct 2013 18:52:43 +0000 (21:52 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Oct 2013 15:20:39 +0000 (17:20 +0200)
commit7c06b08a3073de570f6f0261dae6247cce98f2ab
tree4f12c1ffe5451dac4346ec8c1cde9c5019d1c0c7
parent54ddcbd26a677524d4bcd9f2a9539e6d743592d8
drm/i915: Fix gen2 scanout position readout

Gen2 doesn't have the pixelcount register that gen3 and gen4 have.
Instead we must use the scanline counter like we do for ctg+.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c