From: Ville Syrjälä Date: Tue, 10 Sep 2013 08:39:55 +0000 (+0300) Subject: drm/i915: Call intel_update_watermarks() in specific place during modeset X-Git-Tag: v3.13-rc1~76^2~114^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f37fcc2a263b3a6d9fb9730e0d828a3f9d15a8b0;p=pandora-kernel.git drm/i915: Call intel_update_watermarks() in specific place during modeset Make the call to intel_update_watermarks() just once or twice during modeset. Ideally it should happen independently when each plane gets enabled/disabled, but for now it seems better to keep it in central place. We can improve things when we get all the planes sorted out in a better way. When enabling set up the watermarks just before the pipe is enabled. And when disabling we need to wait until we've marked the crtc as inactive, as otherwise intel_crtc_active() would still think the pipe is enabled and the computed watermarks would reflect that. v2: Pimp up the commit message a bit Reviewed-by: Paulo Zanoni Signed-off-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed