[Intel-gfx] [PATCH 5/8] drm/i915: Make disable_cursor_plane similar to commit_cursor_plane.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Tue Nov 17 01:56:08 PST 2015


Update cursor_bo and cursor_addr after being called.
This is required to make commit_cursor_plane take a
crtc_state and a plane_state.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 70e4589e6387..cfc2d92f7ebd 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -13942,6 +13942,10 @@ static void
 intel_disable_cursor_plane(struct drm_plane *plane,
 			   struct drm_crtc *crtc)
 {
+	struct intel_crtc *crtc = to_intel_crtc(crtc);
+
+	intel_crtc->cursor_addr = 0;
+	intel_crtc->cursor_bo = NULL;
 	intel_crtc_update_cursor(crtc, false);
 }
 
-- 
2.1.0



More information about the Intel-gfx mailing list