aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2014-12-02 10:45:25 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-12-05 19:46:24 -0500
commit38f3ce3af5742eb5a3e9b01997f5ab85109c5762 (patch)
tree648044c772c841d916f1a4cc191ba823b6dbc08d /drivers/gpu/drm/i915/intel_drv.h
parent6beb8c23ebcc3d3287d8a247d11b73d7d0eaa475 (diff)
drm/i915: Consolidate plane 'cleanup' operations (v3)
All plane update functions need to unpin the old framebuffer when flipping to a new one. Pull this logic into a separate function to ease the integration with atomic plane helpers. v2: Don't wait for vblank if we don't have an old fb to cleanup (Ander) v3: Really don't wait for vblank if we don't have an old fb to cleanup. Previous version only handled this for primary planes; we need the same change on cursors/sprites too! (Ander) Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index a36f696e2351..38cb5535cd39 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -924,6 +924,8 @@ void intel_finish_page_flip_plane(struct drm_device *dev, int plane);
924void intel_check_page_flip(struct drm_device *dev, int pipe); 924void intel_check_page_flip(struct drm_device *dev, int pipe);
925int intel_prepare_plane_fb(struct drm_plane *plane, 925int intel_prepare_plane_fb(struct drm_plane *plane,
926 struct drm_framebuffer *fb); 926 struct drm_framebuffer *fb);
927void intel_cleanup_plane_fb(struct drm_plane *plane,
928 struct drm_framebuffer *fb);
927 929
928/* shared dpll functions */ 930/* shared dpll functions */
929struct intel_shared_dpll *intel_crtc_to_shared_dpll(struct intel_crtc *crtc); 931struct intel_shared_dpll *intel_crtc_to_shared_dpll(struct intel_crtc *crtc);