提交 ba44f720 编写于 作者: V Ville Syrjälä 提交者: Daniel Vetter

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: NVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 20ddf665
...@@ -652,8 +652,8 @@ intel_update_plane(struct drm_plane *plane, struct drm_crtc *crtc, ...@@ -652,8 +652,8 @@ intel_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
.y2 = crtc_y + crtc_h, .y2 = crtc_y + crtc_h,
}; };
const struct drm_rect clip = { const struct drm_rect clip = {
.x2 = crtc->mode.hdisplay, .x2 = intel_crtc->config.requested_mode.hdisplay,
.y2 = crtc->mode.vdisplay, .y2 = intel_crtc->config.requested_mode.vdisplay,
}; };
intel_fb = to_intel_framebuffer(fb); intel_fb = to_intel_framebuffer(fb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册