Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a08a42ad authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter
Browse files

drm/i915: Don't try to enable cursor from setplane when crtc is disabled



Make sure the cursor gets fully clipped when enabling it on a disabled
crtc via setplane. This will prevent the lower level code from
attempting to enable the cursor in hardware.

Cc: Paulo Zanoni <przanoni@gmail.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 70e32544
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -11743,8 +11743,8 @@ intel_cursor_plane_update(struct drm_plane *plane, struct drm_crtc *crtc,
	};
	const struct drm_rect clip = {
		/* integer pixels */
		.x2 = intel_crtc->config.pipe_src_w,
		.y2 = intel_crtc->config.pipe_src_h,
		.x2 = intel_crtc->active ? intel_crtc->config.pipe_src_w : 0,
		.y2 = intel_crtc->active ? intel_crtc->config.pipe_src_h : 0,
	};
	bool visible;
	int ret;