drm/i915: use the mode->htotal to calculate linetime watermarks
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 3 May 2013 20:23:39 +0000 (17:23 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 21 May 2013 09:26:20 +0000 (11:26 +0200)
commit7366937312d4e406539b1cf70e1562358bdd560e
treec65ef4fe1370dcedeee82c8052e829a1e2b44e30
parent1011d8c4373b229012208b5aedad4f46396bdd94
drm/i915: use the mode->htotal to calculate linetime watermarks

... instead of mode->crtc_display. The spec says "pipe horizontal
total number of pixels" and the "Haswell Watermark Calculator" tool
uses the "Pipe H Total" instead of "Pipe H Src" as the value.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c