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

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

drm/i915: Use pipe config in sprite code



Rather than dig up the pipe source size from crtc->mode, use
intel_crtc->config.requested_mode.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 20ddf665
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -652,8 +652,8 @@ intel_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
		.y2 = crtc_y + crtc_h,
	};
	const struct drm_rect clip = {
		.x2 = crtc->mode.hdisplay,
		.y2 = crtc->mode.vdisplay,
		.x2 = intel_crtc->config.requested_mode.hdisplay,
		.y2 = intel_crtc->config.requested_mode.vdisplay,
	};

	intel_fb = to_intel_framebuffer(fb);