aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_plane_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_plane_helper.c')
-rw-r--r--drivers/gpu/drm/drm_plane_helper.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c
index 7899fc1dcdb0..7a7dddf604d7 100644
--- a/drivers/gpu/drm/drm_plane_helper.c
+++ b/drivers/gpu/drm/drm_plane_helper.c
@@ -130,15 +130,8 @@ int drm_plane_helper_check_state(struct drm_plane_state *state,
130 unsigned int rotation = state->rotation; 130 unsigned int rotation = state->rotation;
131 int hscale, vscale; 131 int hscale, vscale;
132 132
133 src->x1 = state->src_x; 133 *src = drm_plane_state_src(state);
134 src->y1 = state->src_y; 134 *dst = drm_plane_state_dest(state);
135 src->x2 = state->src_x + state->src_w;
136 src->y2 = state->src_y + state->src_h;
137
138 dst->x1 = state->crtc_x;
139 dst->y1 = state->crtc_y;
140 dst->x2 = state->crtc_x + state->crtc_w;
141 dst->y2 = state->crtc_y + state->crtc_h;
142 135
143 if (!fb) { 136 if (!fb) {
144 state->visible = false; 137 state->visible = false;