Skip to content

Commit

Permalink
drm/i915: Wait for vblank between disabling a sprite and unpinning th…
Browse files Browse the repository at this point in the history
…e fb

When disabling a sprite, wait for the sprite to stop fetching data
from memory before unpinning the fb.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Ville Syrjälä authored and Daniel Vetter committed Mar 27, 2013
1 parent 85fc95b commit c626d31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/i915/intel_sprite.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,8 @@ intel_disable_plane(struct drm_plane *plane)
if (!intel_plane->obj)
goto out;

intel_wait_for_vblank(dev, intel_plane->pipe);

mutex_lock(&dev->struct_mutex);
intel_unpin_fb_obj(intel_plane->obj);
intel_plane->obj = NULL;
Expand Down

0 comments on commit c626d31

Please sign in to comment.