diff options
-rw-r--r-- | drivers/gpu/drm/arm/malidp_crtc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/drm/arm/malidp_crtc.c b/drivers/gpu/drm/arm/malidp_crtc.c index 904fff80917b..7b952559fc43 100644 --- a/drivers/gpu/drm/arm/malidp_crtc.c +++ b/drivers/gpu/drm/arm/malidp_crtc.c | |||
@@ -288,8 +288,14 @@ static int malidp_crtc_atomic_check_scaling(struct drm_crtc *crtc, | |||
288 | s->enhancer_enable = ((h_upscale_factor >> 16) >= 2 || | 288 | s->enhancer_enable = ((h_upscale_factor >> 16) >= 2 || |
289 | (v_upscale_factor >> 16) >= 2); | 289 | (v_upscale_factor >> 16) >= 2); |
290 | 290 | ||
291 | s->input_w = pstate->src_w >> 16; | 291 | if (pstate->rotation & MALIDP_ROTATED_MASK) { |
292 | s->input_h = pstate->src_h >> 16; | 292 | s->input_w = pstate->src_h >> 16; |
293 | s->input_h = pstate->src_w >> 16; | ||
294 | } else { | ||
295 | s->input_w = pstate->src_w >> 16; | ||
296 | s->input_h = pstate->src_h >> 16; | ||
297 | } | ||
298 | |||
293 | s->output_w = pstate->crtc_w; | 299 | s->output_w = pstate->crtc_w; |
294 | s->output_h = pstate->crtc_h; | 300 | s->output_h = pstate->crtc_h; |
295 | 301 | ||