summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorIngrid Gallardo <ingridg@codeaurora.org>2014-12-09 19:01:33 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:36:56 -0700
commit4538cfcaee573ea3ece90e989400b5020ca40696 (patch)
tree5412bd82f5b61639d35bdb5c493bd99f1b25a876 /drivers/video/fbdev
parent12339dbe8789c25031f3defa63bc88d449855464 (diff)
msm: mdss: always get the rotator destination format
Rotator destination format can be different depending in the source format. Previously we were only checking the destination format for bwc or rot90, but this is wrong since there are other scenarios like rotator downscaling, where we need to get the destination pixel format, otherwise we get some misconfiguration and corruption is observed. This change makes sure that always we get the expected destination format for the rotator. Change-Id: I9e3e331e011fcf8301183560ac41fd94cae833c5 Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_intf_writeback.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_intf_writeback.c b/drivers/video/fbdev/msm/mdss_mdp_intf_writeback.c
index b2e1e6bc91d5..15910f4d430a 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_intf_writeback.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_intf_writeback.c
@@ -407,11 +407,8 @@ static int mdss_mdp_writeback_prepare_rot(struct mdss_mdp_ctl *ctl, void *arg)
return -EINVAL;
}
- if (ctx->bwc_mode || ctx->rot90)
- format = mdss_mdp_get_rotator_dst_format(rot->format,
- ctx->rot90, ctx->bwc_mode);
- else
- format = rot->format;
+ format = mdss_mdp_get_rotator_dst_format(rot->format,
+ ctx->rot90, ctx->bwc_mode);
if (ctx->rot90)
ctx->opmode |= BIT(5); /* ROT 90 */