summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_irq.c
diff options
context:
space:
mode:
authorVille Syrjälä2013-10-28 15:31:41 +0100
committerVille Syrjälä2014-01-20 10:06:34 +0100
commitd31faf65b8300fa120f4b31d90270fbac36fc779 (patch)
treea3012f657c36ee8f8dd730fd8b2f78beeafee1a8 /drivers/gpu/drm/drm_irq.c
parentdrm: Change {pixel,line,frame}dur_ns from s64 to int (diff)
downloadkernel-qcow2-linux-d31faf65b8300fa120f4b31d90270fbac36fc779.tar.gz
kernel-qcow2-linux-d31faf65b8300fa120f4b31d90270fbac36fc779.tar.xz
kernel-qcow2-linux-d31faf65b8300fa120f4b31d90270fbac36fc779.zip
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ä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/drm_irq.c')
0 files changed, 0 insertions, 0 deletions