aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/intel_display.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index a38056d68dd8..d8a1d98693e7 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -6929,7 +6929,8 @@ static int intel_crtc_cursor_set(struct drm_crtc *crtc,
6929 intel_crtc->cursor_width = width; 6929 intel_crtc->cursor_width = width;
6930 intel_crtc->cursor_height = height; 6930 intel_crtc->cursor_height = height;
6931 6931
6932 intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo != NULL); 6932 if (intel_crtc->active)
6933 intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo != NULL);
6933 6934
6934 return 0; 6935 return 0;
6935fail_unpin: 6936fail_unpin:
@@ -6948,7 +6949,8 @@ static int intel_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
6948 intel_crtc->cursor_x = x; 6949 intel_crtc->cursor_x = x;
6949 intel_crtc->cursor_y = y; 6950 intel_crtc->cursor_y = y;
6950 6951
6951 intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo != NULL); 6952 if (intel_crtc->active)
6953 intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo != NULL);
6952 6954
6953 return 0; 6955 return 0;
6954} 6956}