提交 c626d317 编写于 作者: V Ville Syrjälä 提交者: Daniel Vetter

drm/i915: Wait for vblank between disabling a sprite and unpinning the fb

When disabling a sprite, wait for the sprite to stop fetching data
from memory before unpinning the fb.
Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 85fc95ba
...@@ -582,6 +582,8 @@ intel_disable_plane(struct drm_plane *plane) ...@@ -582,6 +582,8 @@ intel_disable_plane(struct drm_plane *plane)
if (!intel_plane->obj) if (!intel_plane->obj)
goto out; goto out;
intel_wait_for_vblank(dev, intel_plane->pipe);
mutex_lock(&dev->struct_mutex); mutex_lock(&dev->struct_mutex);
intel_unpin_fb_obj(intel_plane->obj); intel_unpin_fb_obj(intel_plane->obj);
intel_plane->obj = NULL; intel_plane->obj = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册