diff options
Diffstat (limited to 'drivers/gpu/drm/imx/ipuv3-plane.c')
-rw-r--r-- | drivers/gpu/drm/imx/ipuv3-plane.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/imx/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3-plane.c index 57ed56d8623f..150628293c51 100644 --- a/drivers/gpu/drm/imx/ipuv3-plane.c +++ b/drivers/gpu/drm/imx/ipuv3-plane.c | |||
@@ -351,7 +351,7 @@ static int ipu_plane_atomic_check(struct drm_plane *plane, | |||
351 | struct drm_framebuffer *old_fb = old_state->fb; | 351 | struct drm_framebuffer *old_fb = old_state->fb; |
352 | unsigned long eba, ubo, vbo, old_ubo, old_vbo, alpha_eba; | 352 | unsigned long eba, ubo, vbo, old_ubo, old_vbo, alpha_eba; |
353 | bool can_position = (plane->type == DRM_PLANE_TYPE_OVERLAY); | 353 | bool can_position = (plane->type == DRM_PLANE_TYPE_OVERLAY); |
354 | struct drm_rect clip; | 354 | struct drm_rect clip = {}; |
355 | int hsub, vsub; | 355 | int hsub, vsub; |
356 | int ret; | 356 | int ret; |
357 | 357 | ||
@@ -367,10 +367,10 @@ static int ipu_plane_atomic_check(struct drm_plane *plane, | |||
367 | if (WARN_ON(!crtc_state)) | 367 | if (WARN_ON(!crtc_state)) |
368 | return -EINVAL; | 368 | return -EINVAL; |
369 | 369 | ||
370 | clip.x1 = 0; | 370 | if (crtc_state->enable) |
371 | clip.y1 = 0; | 371 | drm_mode_get_hv_timing(&crtc_state->mode, |
372 | clip.x2 = crtc_state->adjusted_mode.hdisplay; | 372 | &clip.x2, &clip.y2); |
373 | clip.y2 = crtc_state->adjusted_mode.vdisplay; | 373 | |
374 | ret = drm_atomic_helper_check_plane_state(state, crtc_state, &clip, | 374 | ret = drm_atomic_helper_check_plane_state(state, crtc_state, &clip, |
375 | DRM_PLANE_HELPER_NO_SCALING, | 375 | DRM_PLANE_HELPER_NO_SCALING, |
376 | DRM_PLANE_HELPER_NO_SCALING, | 376 | DRM_PLANE_HELPER_NO_SCALING, |