FROMLIST: drm/rockchip: vop: correct the source size of uv scale factor setting
authorMark Yao <mark.yao@rock-chips.com>
Mon, 6 Jun 2016 07:58:46 +0000 (15:58 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 28 Jun 2016 10:41:00 +0000 (18:41 +0800)
commit806c448dc15a037678a0803f9a1e9715b2554103
treeeb00346188b1a936da710137d3fc2169db4a6bff
parenta93e4c6028a06cc23360ab8c65c0216e723e7144
FROMLIST: drm/rockchip: vop: correct the source size of uv scale factor setting

When the input color format is YUV, we need to do some external scale
for CBCR. Like,
 * In YUV420 data format:
     cbcr_xscale = dst_w / src_w * 2;
     cbcr_yscale = dst_h / src_h * 2;
 * In YUV422 data format:
     cbcr_xscale = dst_w / src_w * 2;
     cbcr_yscale = dst_h / src_h;
 * In YUV444 data format
     cbcr_xscale = dst_w / src_w;
     cbcr_yscale = dst_h / src_h;

Change-Id: I73e0423d3662bd340b5d155996f13d31c22dcc29
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
(am from https://patchwork.kernel.org/patch/9157353/)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c