MLK-19689 drm/imx/dcss: Fix scaler freeze on channel-0
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Wed, 17 Oct 2018 08:28:36 +0000 (11:28 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit1c082257384535fbc1ceede7466d5e7e50a03f60
treef45c9e608d2cdaf4014247271b0cd8d913f89348
parentc4d2285a6b514540d68fc611baac938f8e056165
MLK-19689 drm/imx/dcss: Fix scaler freeze on channel-0

For channel 0 if 1920x1080@NV12 was used when setting a mode would
freeze the scaler. That's because the chroma vertical size was set to
540 (1920 / 2) instead of 544 (which is divisible to 8).

This patch makes sure we round up the chroma vertical size for channel-0
properly.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/imx/dcss/dcss-dpr.c