提交 973d04f9 编写于 作者: C Chris Wilson 提交者: Keith Packard

drm/i915: Replace direct calls to vfunc.disable_fbc with intel_disable_fbc()

...to ensure that any pending FBC enable tasklet is cancelled.
Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: NKeith Packard <keithp@keithp.com>
上级 43a9539f
...@@ -2820,9 +2820,8 @@ static void ironlake_crtc_disable(struct drm_crtc *crtc) ...@@ -2820,9 +2820,8 @@ static void ironlake_crtc_disable(struct drm_crtc *crtc)
intel_disable_plane(dev_priv, plane, pipe); intel_disable_plane(dev_priv, plane, pipe);
if (dev_priv->cfb_plane == plane && if (dev_priv->cfb_plane == plane)
dev_priv->display.disable_fbc) intel_disable_fbc(dev);
dev_priv->display.disable_fbc(dev);
intel_disable_pipe(dev_priv, pipe); intel_disable_pipe(dev_priv, pipe);
...@@ -2986,9 +2985,8 @@ static void i9xx_crtc_disable(struct drm_crtc *crtc) ...@@ -2986,9 +2985,8 @@ static void i9xx_crtc_disable(struct drm_crtc *crtc)
intel_crtc_dpms_overlay(intel_crtc, false); intel_crtc_dpms_overlay(intel_crtc, false);
intel_crtc_update_cursor(crtc, false); intel_crtc_update_cursor(crtc, false);
if (dev_priv->cfb_plane == plane && if (dev_priv->cfb_plane == plane)
dev_priv->display.disable_fbc) intel_disable_fbc(dev);
dev_priv->display.disable_fbc(dev);
intel_disable_plane(dev_priv, plane, pipe); intel_disable_plane(dev_priv, plane, pipe);
intel_disable_pipe(dev_priv, pipe); intel_disable_pipe(dev_priv, pipe);
...@@ -8217,8 +8215,7 @@ void intel_modeset_cleanup(struct drm_device *dev) ...@@ -8217,8 +8215,7 @@ void intel_modeset_cleanup(struct drm_device *dev)
intel_increase_pllclock(crtc); intel_increase_pllclock(crtc);
} }
if (dev_priv->display.disable_fbc) intel_disable_fbc(dev);
dev_priv->display.disable_fbc(dev);
if (IS_IRONLAKE_M(dev)) if (IS_IRONLAKE_M(dev))
ironlake_disable_drps(dev); ironlake_disable_drps(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册