Commit fe392efd authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter

drm/i915: Skip watermark merging for inactive pipes

Even though the inactive pipes should have their watermarks set to all 0
with enable=true, we can possibly shave off a few cycles by completely
skipping the merge procedure for inactive pipes.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 2a44b76b
...@@ -2206,8 +2206,11 @@ static void ilk_merge_wm_level(struct drm_device *dev, ...@@ -2206,8 +2206,11 @@ static void ilk_merge_wm_level(struct drm_device *dev,
const struct intel_crtc *intel_crtc; const struct intel_crtc *intel_crtc;
list_for_each_entry(intel_crtc, &dev->mode_config.crtc_list, base.head) { list_for_each_entry(intel_crtc, &dev->mode_config.crtc_list, base.head) {
const struct intel_wm_level *wm = const struct intel_pipe_wm *active = &intel_crtc->wm.active;
&intel_crtc->wm.active.wm[level]; const struct intel_wm_level *wm = &active->wm[level];
if (!active->pipe_enabled)
continue;
if (!wm->enable) if (!wm->enable)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment